upgrade torch version code example Example: conda update pytorch conda update pytorch torchvision -c pytorch