Segmentation Fault in tensor:sub()
fidlej opened this issue · comments
Ivo Danihelka commented
The following code causes a segmentation fault:
torch.Tensor():sub(1, 0)
torch.Tensor():sub(0, 1)
The problem happens when the tensor is empty
and the used index is zero.
Should I add a better checking of the arguments?