Commit 83c932aa by Zhi Committed by Jared Roesch

[bugfix] fix the bug caused by test_any (#3528)

parent 3fb84e2b
...@@ -14,18 +14,13 @@ ...@@ -14,18 +14,13 @@
# KIND, either express or implied. See the License for the # KIND, either express or implied. See the License for the
# specific language governing permissions and limitations # specific language governing permissions and limitations
# under the License. # under the License.
import numpy as np
import tvm import tvm
from tvm import relay from tvm import relay
from tvm.relay import Kind, transform from tvm.relay import Kind, transform
from tvm.relay.loops import while_loop from tvm.relay.loops import while_loop
import numpy as np from tvm.relay.testing import run_infer_type as infer_type
def infer_type(expr):
mod = relay.Module.from_expr(expr)
mod = transform.InferType()(mod)
entry = mod[mod.entry_func]
return entry if isinstance(expr, relay.Function) else entry.body
def int32(val): def int32(val):
return relay.const(val, 'int32') return relay.const(val, 'int32')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment