How do I solve libtorch Times error on Linux

dongchenxf 注册会员
2023-02-28 12:35

Did you see your error message, which was converting IValue from libtorch to Tensor.
suggests you first check that the IValue type is correct, and make sure that it will be converted correctly to a Tensor type. After a run

evan5202012 注册会员
2023-02-28 12:35

This answer quotes ChatGPT

This error is usually caused by using incompatible versions of libtorch and CUDA. Make sure your CUDA version matches the libtorch version you downloaded. In your case, you're using libtorch 1.9.0 and CUDA 10.2.

In addition, it is possible that the input data type does not match the data type expected by the model. Check that the dimensions and types of the input data match what the model expects.

About the Author

Question Info

Publish Time
2023-02-28 12:35
Update Time
2023-02-28 12:35