Skip to content

Commit 7d42fd8

Browse files
cdluminatesoumith
authored andcommitted
Fix typos.
1 parent d112cbd commit 7d42fd8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LookupTable.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ __global__ void cunn_LookupTable_accGradParametersKernel(
105105
int idx = blockIdx.x * 4 + threadIdx.y;
106106

107107
// Each warp is responsible for an input into the LookupTable.
108-
// If the preceeding input has the same as this input, then the warp
108+
// If the preceding input has the same as this input, then the warp
109109
// exits immediately. The warp also processes subsequent inputs with the
110110
// same value.
111111
//

generic/SparseLinear.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void THNN_(SparseLinear_accGradParameters)(
156156
THCTensor_(select)(state, sel, input, 1, 0); // rowInds
157157
THCTensor_(select)(state, cols, input, 1, 1); // colInds
158158
THCTensor_(cadd)(state, buf, sel, batchnum, cols); // colInds * buatchdim + rowInds
159-
THCTensor_(sort)(state, buf, inds, buf, 0, 0); // Indicies are now in ind
159+
THCTensor_(sort)(state, buf, inds, buf, 0, 0); // Indices are now in ind
160160
THCTensor_(indexSelect)(state, buf, input, 0, inds);
161161

162162
THCTensor_(resize1d)(state, values, nnz);

0 commit comments

Comments
 (0)