Closed zhengli233 closed 5 years ago
yes l have sample problem in linux fow v1.1.0
Solved. Replace every
torch::TensorFromBlob
to
at::from_blob
like
at::from_blob(weights_src, {length/4}).to(torch::kFloat32)
There will be 3 totally.
thanks a lot!
How do I change this line
at::Tensor weights = torch::CPU(torch::kFloat32).tensorFromBlob(weights_src, {length/4});
to the
from blob api??
This error showed when loading the weights file:
Does anyone have the same problem?