collect_env
torch_to_nnef.collect_env
Used to collect environment status/versions for debuging purpose.
check_release_file
Read /etc/*-release file to get a pretty name for linux distros.
dump_environment_versions
Dumps software versions to a file 'versions' in the given folder.
get_pip_packages
Returns pip list
output.
Note: will also find conda-installed pytorch and numpy packages.
run_and_parse_first_match
Runs command, returns the first regex match if it exists.
run_and_read_all
Runs command; reads and returns entire output if rc is 0.