torch / torch7

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

torch.prod(...) wrongly returns NaN on GPU #975

Closed vadimkantorov closed 7 years ago

vadimkantorov commented 7 years ago
th> torch.prod(torch.CudaTensor{0})
nan

th> torch.prod(torch.Tensor{0})
0

discovered by @NTheo

NTheo commented 7 years ago

Thanks for the ping Vadim, but I think it's been fixed by someone else here https://github.com/torch/cutorch/commit/9e91bf9a9a84948acc7b2954c455846359775d82