You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Array in Julia, I can use m[[CartesianIndex(1,1), CartesianIndex(2,1)]] to get the required elements. But with the Tensor in Torch.jl I only get ERROR: getindex not defined for Tensor{Float32,2}
The text was updated successfully, but these errors were encountered:
Currently getindex has been commented out in favour of keeping the implementation from going to slow fallbacks. This can be done fairly easily via views on the tensor. So a getindex operation can create a copy of a view.
With Array in Julia, I can use
m[[CartesianIndex(1,1), CartesianIndex(2,1)]]
to get the required elements. But with theTensor
inTorch.jl
I only getERROR: getindex not defined for Tensor{Float32,2}
The text was updated successfully, but these errors were encountered: