pytorch/scripts/fbcode-dev-setup/onnx_c2_sanity_check.sh
2018-04-02 14:06:29 -04:00

11 lines
339 B
Bash
Executable File

#!/bin/bash
set -e
python -c 'from caffe2.python import build; from pprint import pprint; pprint(build.build_options)'
python -c 'from caffe2.python import core, workspace; print("GPUs found: " + str(workspace.NumCudaDevices()))'
python -c "import onnx"
python -c "import torch"
echo "Caffe2, PyTorch and ONNX installed successfully!!"