From 6ccbdbccc63d071a7ecc489674513686d499099d Mon Sep 17 00:00:00 2001 From: Wuwei Lin Date: Tue, 23 Feb 2021 21:23:30 -0500 Subject: [PATCH] Update topi.util -> topi.utils (#315) --- python/tvm/tir/testing/workload_te.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/tvm/tir/testing/workload_te.py b/python/tvm/tir/testing/workload_te.py index fc02932c2f9b..c7c74164a76e 100644 --- a/python/tvm/tir/testing/workload_te.py +++ b/python/tvm/tir/testing/workload_te.py @@ -391,10 +391,10 @@ def conv2d_nhwc_without_layout_rewrite( # pylint: disable=invalid-name padding, (dilated_kernel_h, dilated_kernel_w) ) out_channel = num_filter - out_height = topi.util.simplify( + out_height = topi.utils.simplify( (in_height - dilated_kernel_h + pad_top + pad_down) // stride_h + 1 ) - out_width = topi.util.simplify( + out_width = topi.utils.simplify( (in_width - dilated_kernel_w + pad_left + pad_right) // stride_w + 1 ) pad_before = [0, pad_top, pad_left, 0] @@ -491,7 +491,7 @@ def conv2d_winograd_nhwc( # TODO: implement tile_size tile_size = 4 #_infer_tile_size(data, kernel) inputs = te.placeholder((N, H, W, CI), name='inputs') - N, H, W, CI = topi.util.get_const_tuple(inputs.shape) + N, H, W, CI = topi.utils.get_const_tuple(inputs.shape) if isinstance(dilation, int): dilation_h = dilation_w = dilation else: