masahi commented on issue #7896: URL: https://github.com/apache/tvm/issues/7896#issuecomment-824516302
ok can you try replacing https://github.com/apache/tvm/blob/8e23806d2d522b71979d0a2730b38cc5c3bf6185/python/tvm/relay/op/_transform.py#L1017-L1023 with ``` @_reg.register_shape_func("where", False) def where_shape_func(attrs, inputs, _): """ Shape func for where. """ def maybe_expand(tensor): if len(tensor.shape) == 0: return topi.full((1,), "int64", 1) return tensor cond_shape = maybe_expand(inputs[0]) x_shape = maybe_expand(inputs[1]) y_shape = maybe_expand(inputs[2]) ``` With two fixes above `relay.vm.compile` finishes without error. Can you verify the output? -- 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. For queries about this service, please contact Infrastructure at: [email protected]
