Open lbotecur opened 3 years ago
Got same problem with Julia 1.6.
julia> a=Torch.Tensor(3,4, dev=-1)
3×4 Torch.Tensor{Float32, 2}:
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
0.0 0.0 0.0 0.0
julia> a[1,1]
ERROR: getindex not defined for Torch.Tensor{Float32, 2}
Hello,
I am implementing a very simple example with Torch.jl, and I get the following error:
getindex not defined for Tensor{Float32,2}
. The code works forcpu
andgpu
, and it is as follows:My system information is this:
GPU info:
Packages info:
Thanks.