inferno-pytorch / inferno

A utility library around PyTorch
Other
244 stars 41 forks source link

changed view to copy #203

Closed vzinche closed 4 years ago

vzinche commented 4 years ago

If torch.from_numpy is applied directly after RandomFlip3D it might complain that the negative strides are not supported. That is why we have to return a copy, not a view