Commit 66736348 authored by rusty1s's avatar rusty1s
Browse files

removed comment

parent 6ed9c162
......@@ -12,7 +12,7 @@ __global__ void gridKernel(int64_t *self, TensorInfo<T> posInfo, T *size,
int64_t coef = 1, value = 0;
for (ptrdiff_t d = 0; d < posInfo.size[1]; d += posInfo.stride[1]) {
c = THCNumerics<T>::div(pos[d], size[d]);
c = ScalarConvert<int64_t, T>::to(ScalarConvert<T, int64_t>::to(c)); // floor.
c = ScalarConvert<int64_t, T>::to(ScalarConvert<T, int64_t>::to(c));
value += coef * c;
coef *= count[d];
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment