Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/cunn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhou Mo <cdluminate@gmail.com>2017-07-30 15:38:00 +0300
committerSoumith Chintala <soumith@gmail.com>2017-08-25 21:25:58 +0300
commitf4869232d90ecc3d022d9a5da303571f2bd3a72c (patch)
tree4139bffe3a7572e21b3551ebcea869c7cbd7af0a
parenta6522cf297e1496cd2bd2271992ec3bcc525bd72 (diff)
Fix typos.
-rw-r--r--lib/THCUNN/LookupTable.cu2
-rw-r--r--lib/THCUNN/generic/SparseLinear.cu2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/THCUNN/LookupTable.cu b/lib/THCUNN/LookupTable.cu
index e626632..116639b 100644
--- a/lib/THCUNN/LookupTable.cu
+++ b/lib/THCUNN/LookupTable.cu
@@ -105,7 +105,7 @@ __global__ void cunn_LookupTable_accGradParametersKernel(
int idx = blockIdx.x * 4 + threadIdx.y;
// Each warp is responsible for an input into the LookupTable.
- // If the preceeding input has the same as this input, then the warp
+ // If the preceding input has the same as this input, then the warp
// exits immediately. The warp also processes subsequent inputs with the
// same value.
//
diff --git a/lib/THCUNN/generic/SparseLinear.cu b/lib/THCUNN/generic/SparseLinear.cu
index 07eda62..dc4c6d4 100644
--- a/lib/THCUNN/generic/SparseLinear.cu
+++ b/lib/THCUNN/generic/SparseLinear.cu
@@ -156,7 +156,7 @@ void THNN_(SparseLinear_accGradParameters)(
THCTensor_(select)(state, sel, input, 1, 0); // rowInds
THCTensor_(select)(state, cols, input, 1, 1); // colInds
THCTensor_(cadd)(state, buf, sel, batchnum, cols); // colInds * buatchdim + rowInds
- THCTensor_(sort)(state, buf, inds, buf, 0, 0); // Indicies are now in ind
+ THCTensor_(sort)(state, buf, inds, buf, 0, 0); // Indices are now in ind
THCTensor_(indexSelect)(state, buf, input, 0, inds);
THCTensor_(resize1d)(state, values, nnz);