torch / torch7

http://torch.ch
Other
9k stars 2.38k forks source link

Meaning of comment. #1099

Closed singam-sanjay closed 7 years ago

singam-sanjay commented 7 years ago

What does the comment at the end of this line mean ? https://github.com/torch/torch7/blob/3864f3782a74715e35d98176f9014a74524a868a/lib/TH/THTensorApply.h#L201

albanD commented 7 years ago

It means: "0 and not TENSOR##_dim !". This is an outdated comment, because in the original code, TENSOR##_i was initialized in this loop and was initialized to 0. You can see it here.

clement-masson commented 7 years ago

This is legacy French comment, ^^

singam-sanjay commented 7 years ago

Thanks for the clarification !!