mlir从onnx和pytorch分别转过来
立即下载
资源介绍:
mlir从onnx和pytorch分别转过来
tar -zxvf cmake-3.24.2.tar.gz
cd cmake-3.24.2/
./bootstrap --prefix=/opt/cmake-3.24.2
make -j$(nproc)
sudo make install
sudo nano ~/.bashrc
之前的版本是3.6.0,版本太低
PROTOC_ZIP=protoc-3.14.0-linux-x86_64.zip
curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.14.0/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local/bin/protoc
sudo protoc --version 3.14.0
rm -f $PROTOC_ZIP
sudo apt install openjdk-11-jdk
java -version
sudo nano ~/.bashrc
指令:./onnx-mlir --EmitONNXIR bevdet/yolov5s_no_constant_folding.onnx