I would like to install Pytorch and Torchvision on my Jetson Nano 2GB developer kit. I installed Pytorch version 1.9.0 successfully, but I could not install Torchvision. I had referred many procedures but installation is still in vain. I follow the instruction here.
Terminal message:
/home/vcc_jetson1/torchvision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp: In static member function ‘static torch::autograd::variable_list vision::ops::{anonymous}::DeformConv2dFunction::forward(torch::autograd::AutogradContext*, const Variable&, const Variable&, const Variable&, const Variable&, const Variable&, int64_t, int64_t, int64_t, int64_t, int64_t, int64_t, int64_t, int64_t, bool)’:
/home/vcc_jetson1/torchvision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp:30:9: error: ‘AutoDispatchBelowADInplaceOrView’ is not a member of ‘at’
at::AutoDispatchBelowADInplaceOrView g;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/vcc_jetson1/torchvision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp: In static member function ‘static torch::autograd::variable_list vision::ops::{anonymous}::DeformConv2dBackwardFunction::forward(torch::autograd::AutogradContext*, const Variable&, const Variable&, const Variable&, const Variable&, const Variable&, const Variable&, int64_t, int64_t, int64_t, int64_t, int64_t, int64_t, int64_t, int64_t, bool)’:
/home/vcc_jetson1/torchvision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp:145:9: error: ‘AutoDispatchBelowADInplaceOrView’ is not a member of ‘at’
at::AutoDispatchBelowADInplaceOrView g;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/vcc_jetson1/.local/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/autograd.h:4:0,
from /home/vcc_jetson1/torchvision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp:3:
/home/vcc_jetson1/.local/lib/python3.6/site-packages/torch/include/torch/csrc/autograd/custom_function.h: In instantiation of ‘torch::autograd::variable_list torch::autograd::CppNode<T>::apply(torch::autograd::variable_list&&) [with T = vision::ops::{anonymous}::DeformConv2dBackwardFunction; torch::autograd::variable_list = std::vector<at::Tensor>]’:
/home/vcc_jetson1/torchvision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp:266:1: required from here
/home/vcc_jetson1/.local/lib/python3.6/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/home/vcc_jetson1/.local/lib/python3.6/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/vcc_jetson1/.local/lib/python3.6/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~~^~~~~~~~~~~~~
/home/vcc_jetson1/.local/lib/python3.6/site-packages/torch/include/torch/csrc/autograd/custom_function.h: In instantiation of ‘torch::autograd::variable_list torch::autograd::CppNode<T>::apply(torch::autograd::variable_list&&) [with T = vision::ops::{anonymous}::DeformConv2dFunction; torch::autograd::variable_list = std::vector<at::Tensor>]’:
/home/vcc_jetson1/torchvision/torchvision/csrc/ops/autograd/deform_conv2d_kernel.cpp:266:1: required from here
/home/vcc_jetson1/.local/lib/python3.6/site-packages/torch/include/torch/csrc/autograd/custom_function.h:279:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (num_outputs > num_forward_inputs) {
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/home/vcc_jetson1/.local/lib/python3.6/site-packages/torch/include/torch/csrc/autograd/custom_function.h:290:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (num_outputs != num_forward_inputs) {
~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/vcc_jetson1/.local/lib/python3.6/site-packages/torch/include/torch/csrc/autograd/custom_function.h:300:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < num_outputs; ++i) {
~~^~~~~~~~~~~~~
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1