Replaced view
with replace
to prevent errors on non-contiguous tensors
#974
Loading
view
with replace
to prevent errors on non-contiguous tensors
#974