ganler commented on PR #11681: URL: https://github.com/apache/tvm/pull/11681#issuecomment-1153061005
@wzh99 Thanks for digging into the issue. Then I think a proper place to put this unit test can be: https://github.com/apache/tvm/blob/main/tests/python/relay/test_type_infer.py The test can be something like: ```python def test_conv3d_type_infer(): x = relay.var("x", shape=(1, 4, 8, 8, 8), dtype="float32") out = relay.nn.conv3d( x, relay.var("weight", shape=(2, 2, 1, 1, 1), dtype="float32"), groups=2, channels=2, kernel_size=[1, 1, 1], ) mod = tvm.IRModule.from_expr(out) mod = transform.InferType()(mod) tvm.ir.assert_structural_equal( mod["main"].body.checked_type, relay.TensorType((...), "float32") # The correct output shape ) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
