[SOLVED] Have version requirement for PyTorch or ONNX for Relax Frontend?

Hi, all, I found there are some failed test cases about frontend when I put new version in my own enviroment. like below:

ONNX: RuntimeError

My onnx runtime version is: 1.15.1

tests/python/relax/test_frontend_onnx.py::test_mean_variance_norm

>   sess.initialize_session(providers, provider_options, disabled_optimizers)
E       onnxruntime.capi.onnxruntime_pybind11_state.RuntimeException: [ONNXRuntimeError] : 6 : RUNTIME_EXCEPTION : Exception during initialization: /onnxruntime_src/onnxruntime/core
/providers/cpu/tensor/mean_variance_normalization.h:116 onnxruntime::MeanVarianceNormalization_1<T>::MeanVarianceNormalization_1(const onnxruntime::OpKernelInfo&) [with T = float] M
eanVarianceNormalization CPU EP only supports NHW and NCHW reduction for axes attribute.

Torch: AttributeError: ‘Graph’ object has no attribute ‘find_nodes’

My version: 2.2.1

I found Graph of my version’s doc has no method find_nodes. And I found that this problem can be bypassed by using graph.nodes to traverse one by one, but it cannot be bypassed in other areas, such as the newly added data structures in the new version.


Thus, I wanna know whether have a clear version number, such as torch, onnx, etc.

Accroding CI files:docker/install/ubuntu_install_onnx.sh

# onnx 1.9 removed onnx optimizer from the main repo (see
# https://github.com/onnx/onnx/pull/2834).  When updating the CI image
# to onnx>=1.9, onnxoptimizer should also be installed.
pip3 install \
    onnx==1.12.0 \
    onnxruntime==1.12.1 \
    onnxoptimizer==0.2.7

# torch depends on a number of other packages, but unhelpfully, does
# not expose that in the wheel!!!
pip3 install future

pip3 install \
    torch==2.4.1 \
    torchvision==0.19.1 \
    --extra-index-url https://download.pytorch.org/whl/cpu