I made a very rough script to try and do the Python 2 -> Python 3 conversion here:

  
      gist.github.com
  
  
    https://gist.github.com/EricCousineau-TRI/44633f67d4afe6b3d7227a6e7418c098 49
torch_weights_py2_to_py3.sh
#!/bin/bash
set -eux -o pipefail

py2=~/venv/py2
py3=~/venv/py3

if [[ ! -f ${py2}/bin/python ]]; then
    python2 -m virtualenv -p python2 --system-site-packages ${py2}
    ${py2}/bin/pip install torch==0.4.0
fi
This file has been truncated. show original




  
  
    
    
  
  


YMMV