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
tensor:=lib.AtiToTensor(cval.civalue) // <-----lib.Ctensoriferr:=TorchErr(); err!=nil {
returnnil, err
}
return&IValue{
value: tensor, // ---> It might be better to change this to x Tensor{tensor} kind: TensorVal,
name: "Tensor",
}, nil
the value of IValue is the lib.Ctensor type , as far as I know (im new to golang), I cannot convert it to Tensor type outside the tensor package because the ctensor of type Tensor is not exported.
typeTensorstruct {
ctensor lib.Ctensor
}
The text was updated successfully, but these errors were encountered:
when
ForwardIs
returns a pytorch Tensor type from the PyTorch JIT model , according to the code below,https://github.com/sugarme/gotch/blob/master/tensor/jit.go#L449-L457
the value of IValue is the lib.Ctensor type , as far as I know (im new to golang), I cannot convert it to Tensor type outside the
tensor
package because thectensor
oftype Tensor
is not exported.The text was updated successfully, but these errors were encountered: