The GitHub Actions job "tvm-bot" on tvm.git/main has failed. Run started by GitHub user tlopex (triggered by tlopex).
Head commit for run: 262a5644858b9d92cd0906f3ee6cdb3dd5f6f03b / Vic Wen <[email protected]> [Fix][Relax][ONNX] Recover ConstantOfShape initializer shape (#20002) `ConstantOfShape` uses its input tensor as shape metadata. When that input is an initializer and `keep_params_in_input=True`, the Relax ONNX frontend should recover the initializer value from `params` instead of treating the input as an opaque runtime value. This patch applies `get_constant` to the `ConstantOfShape` shape input before shape handling. It also guards the constant-shape folding path so it only calls `len(shape)` on `relax.ShapeExpr` values. The regression test covers an initializer-backed shape input imported with `keep_params_in_input=True` and checks that the resulting Relax function has the expected output shape and dtype. A separate lint follow-up commit removes stale `F821` suppressions from two DLight files so the repository-wide CI lint is clean. Verification: - `python -m pytest tests/python/relax/test_frontend_onnx.py::test_constantofshape_initializer_shape_with_keep_params_in_input -q` - `pre-commit run --all-files` Fixes #20001. --------- Signed-off-by: viiccwen <[email protected]> Report URL: https://github.com/apache/tvm/actions/runs/29333889095 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
