I am able to install onnx as I executed following command
export CMAKE_ARGS="-DONNX_USE_PROTOBUF_SHARED_LIBS=ON".
onnx package has been istalled
The pip list command shows onnx
(env1) (base) archana@DESKTOP-55973JC:~/onnx$ pip list
Package Version
attrs 22.2.0
cloudpickle 2.2.1
decorator 5.1.1
numpy 1.19.5
onnx 1.13.0
onnxoptimizer 0.3.6
pip 19.2.3
protobuf 3.20.3
psutil 5.9.4
scipy 1.10.0
setuptools 41.2.0
tornado 6.2
tvm 0.12.dev155+gcc7def073
typing-extensions 4.4.0
xgboost 1.5.2
WARNING: You are using pip version 19.2.3, however version 23.0 is available.
You should consider upgrading via the ‘pip install --upgrade pip’ command.
However, still I get the same error
(env1) (base) archana@DESKTOP-55973JC:~/onnx$ tvmc compile --target “llvm” --input-shapes “data:[1,3,224,224]” --output resnet50-v2-7-tvm.tar resnet50-v2-7.onnx
[16:12:51] /home/archana/tvmenv/tvm/src/runtime/logging.cc:307: TVM_LOG_DEBUG enables VLOG statements in ‘ir/transform.cc’ up to level 1
[16:12:51] /home/archana/tvmenv/tvm/src/runtime/logging.cc:307: TVM_LOG_DEBUG enables VLOG statements in ‘relay/ir/transform.cc’ up to level 1
Package “onnx” is not installed. Hint: “pip install tlcpack[tvmc]”.(env1) (base) archana@DESKTOP-55973JC:~/onnx$