Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
f4bdfa60
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2305
Star
20932
Fork
5423
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
f4bdfa60
编写于
7月 11, 2023
作者:
张
张春乔
提交者:
GitHub
7月 11, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CodeStyle][CINN] ruff F403 in test/cinn (#55255)
上级
b4d7e1e0
变更
134
展开全部
隐藏空白更改
内联
并排
Showing
134 changed file
with
250 addition
and
282 deletion
+250
-282
pyproject.toml
pyproject.toml
+0
-4
test/cinn/op_mappers/test_argmax_op.py
test/cinn/op_mappers/test_argmax_op.py
+0
-2
test/cinn/op_mappers/test_argmin_op.py
test/cinn/op_mappers/test_argmin_op.py
+0
-2
test/cinn/op_mappers/test_pool2d_op.py
test/cinn/op_mappers/test_pool2d_op.py
+1
-1
test/cinn/ops/op_test.py
test/cinn/ops/op_test.py
+11
-2
test/cinn/ops/test_abs_op.py
test/cinn/ops/test_abs_op.py
+2
-2
test/cinn/ops/test_acos_op.py
test/cinn/ops/test_acos_op.py
+2
-2
test/cinn/ops/test_acosh_op.py
test/cinn/ops/test_acosh_op.py
+2
-2
test/cinn/ops/test_add_op.py
test/cinn/ops/test_add_op.py
+2
-2
test/cinn/ops/test_arange_op.py
test/cinn/ops/test_arange_op.py
+2
-2
test/cinn/ops/test_argmax_op.py
test/cinn/ops/test_argmax_op.py
+2
-3
test/cinn/ops/test_argmin_op.py
test/cinn/ops/test_argmin_op.py
+2
-2
test/cinn/ops/test_argsort_op.py
test/cinn/ops/test_argsort_op.py
+2
-2
test/cinn/ops/test_asin_op.py
test/cinn/ops/test_asin_op.py
+2
-2
test/cinn/ops/test_asinh_op.py
test/cinn/ops/test_asinh_op.py
+2
-2
test/cinn/ops/test_atan2_op.py
test/cinn/ops/test_atan2_op.py
+2
-2
test/cinn/ops/test_atan_op.py
test/cinn/ops/test_atan_op.py
+2
-2
test/cinn/ops/test_atanh_op.py
test/cinn/ops/test_atanh_op.py
+2
-2
test/cinn/ops/test_batch_norm_op.py
test/cinn/ops/test_batch_norm_op.py
+2
-2
test/cinn/ops/test_binary_elementwise_op.py
test/cinn/ops/test_binary_elementwise_op.py
+2
-3
test/cinn/ops/test_bitcast_convert_op.py
test/cinn/ops/test_bitcast_convert_op.py
+2
-2
test/cinn/ops/test_bitwise_op.py
test/cinn/ops/test_bitwise_op.py
+2
-2
test/cinn/ops/test_broadcast_to_op.py
test/cinn/ops/test_broadcast_to_op.py
+2
-2
test/cinn/ops/test_broadcast_to_op_new.py
test/cinn/ops/test_broadcast_to_op_new.py
+2
-2
test/cinn/ops/test_cast_op.py
test/cinn/ops/test_cast_op.py
+2
-2
test/cinn/ops/test_cbrt_op.py
test/cinn/ops/test_cbrt_op.py
+2
-2
test/cinn/ops/test_ceil_op.py
test/cinn/ops/test_ceil_op.py
+2
-2
test/cinn/ops/test_cholesky_op.py
test/cinn/ops/test_cholesky_op.py
+2
-2
test/cinn/ops/test_clz_op.py
test/cinn/ops/test_clz_op.py
+2
-2
test/cinn/ops/test_comparison_op.py
test/cinn/ops/test_comparison_op.py
+2
-2
test/cinn/ops/test_concat_op.py
test/cinn/ops/test_concat_op.py
+2
-2
test/cinn/ops/test_constant_op.py
test/cinn/ops/test_constant_op.py
+2
-2
test/cinn/ops/test_conv2d_op.py
test/cinn/ops/test_conv2d_op.py
+3
-3
test/cinn/ops/test_cos_op.py
test/cinn/ops/test_cos_op.py
+2
-3
test/cinn/ops/test_cosh_op.py
test/cinn/ops/test_cosh_op.py
+2
-2
test/cinn/ops/test_depthwise_conv2d_op.py
test/cinn/ops/test_depthwise_conv2d_op.py
+2
-2
test/cinn/ops/test_divide_op.py
test/cinn/ops/test_divide_op.py
+2
-2
test/cinn/ops/test_dropout_infer_op.py
test/cinn/ops/test_dropout_infer_op.py
+2
-2
test/cinn/ops/test_erf_op.py
test/cinn/ops/test_erf_op.py
+2
-2
test/cinn/ops/test_exp_op.py
test/cinn/ops/test_exp_op.py
+2
-2
test/cinn/ops/test_expand_dims.py
test/cinn/ops/test_expand_dims.py
+2
-2
test/cinn/ops/test_fill_constant_op.py
test/cinn/ops/test_fill_constant_op.py
+2
-2
test/cinn/ops/test_floor_divide_op.py
test/cinn/ops/test_floor_divide_op.py
+2
-2
test/cinn/ops/test_floor_op.py
test/cinn/ops/test_floor_op.py
+2
-2
test/cinn/ops/test_gather_nd_op.py
test/cinn/ops/test_gather_nd_op.py
+2
-2
test/cinn/ops/test_gather_op.py
test/cinn/ops/test_gather_op.py
+2
-2
test/cinn/ops/test_gaussian_random_op.py
test/cinn/ops/test_gaussian_random_op.py
+2
-2
test/cinn/ops/test_gelu_op.py
test/cinn/ops/test_gelu_op.py
+2
-2
test/cinn/ops/test_identity_op.py
test/cinn/ops/test_identity_op.py
+2
-2
test/cinn/ops/test_is_finite_op.py
test/cinn/ops/test_is_finite_op.py
+2
-2
test/cinn/ops/test_is_inf_op.py
test/cinn/ops/test_is_inf_op.py
+2
-2
test/cinn/ops/test_is_nan_op.py
test/cinn/ops/test_is_nan_op.py
+2
-2
test/cinn/ops/test_isclose_op.py
test/cinn/ops/test_isclose_op.py
+2
-2
test/cinn/ops/test_left_shift_op.py
test/cinn/ops/test_left_shift_op.py
+2
-2
test/cinn/ops/test_log_op.py
test/cinn/ops/test_log_op.py
+1
-2
test/cinn/ops/test_logical_and_op.py
test/cinn/ops/test_logical_and_op.py
+2
-2
test/cinn/ops/test_logical_not_op.py
test/cinn/ops/test_logical_not_op.py
+2
-2
test/cinn/ops/test_logical_or_op.py
test/cinn/ops/test_logical_or_op.py
+2
-2
test/cinn/ops/test_logical_right_shift_op.py
test/cinn/ops/test_logical_right_shift_op.py
+2
-2
test/cinn/ops/test_logical_xor_op.py
test/cinn/ops/test_logical_xor_op.py
+2
-2
test/cinn/ops/test_lookup_table_op.py
test/cinn/ops/test_lookup_table_op.py
+2
-2
test/cinn/ops/test_matmul_op.py
test/cinn/ops/test_matmul_op.py
+2
-2
test/cinn/ops/test_max_op.py
test/cinn/ops/test_max_op.py
+2
-2
test/cinn/ops/test_min_op.py
test/cinn/ops/test_min_op.py
+2
-2
test/cinn/ops/test_mod_op.py
test/cinn/ops/test_mod_op.py
+2
-2
test/cinn/ops/test_mul_op.py
test/cinn/ops/test_mul_op.py
+2
-2
test/cinn/ops/test_multiply_op.py
test/cinn/ops/test_multiply_op.py
+2
-2
test/cinn/ops/test_negative_op.py
test/cinn/ops/test_negative_op.py
+2
-2
test/cinn/ops/test_one_hot_op.py
test/cinn/ops/test_one_hot_op.py
+2
-2
test/cinn/ops/test_pool2d_op.py
test/cinn/ops/test_pool2d_op.py
+2
-2
test/cinn/ops/test_popc_op.py
test/cinn/ops/test_popc_op.py
+2
-2
test/cinn/ops/test_pow_op.py
test/cinn/ops/test_pow_op.py
+2
-2
test/cinn/ops/test_randint_op.py
test/cinn/ops/test_randint_op.py
+2
-2
test/cinn/ops/test_reciprocal_op.py
test/cinn/ops/test_reciprocal_op.py
+1
-2
test/cinn/ops/test_reduce_op.py
test/cinn/ops/test_reduce_op.py
+2
-2
test/cinn/ops/test_reduce_op_new.py
test/cinn/ops/test_reduce_op_new.py
+2
-2
test/cinn/ops/test_relu6_op.py
test/cinn/ops/test_relu6_op.py
+2
-2
test/cinn/ops/test_relu_op.py
test/cinn/ops/test_relu_op.py
+2
-2
test/cinn/ops/test_remainder_op.py
test/cinn/ops/test_remainder_op.py
+2
-2
test/cinn/ops/test_repeat_op.py
test/cinn/ops/test_repeat_op.py
+2
-2
test/cinn/ops/test_reshape_op.py
test/cinn/ops/test_reshape_op.py
+2
-2
test/cinn/ops/test_resize_op.py
test/cinn/ops/test_resize_op.py
+0
-3
test/cinn/ops/test_reverse_op.py
test/cinn/ops/test_reverse_op.py
+2
-2
test/cinn/ops/test_right_shift_op.py
test/cinn/ops/test_right_shift_op.py
+2
-2
test/cinn/ops/test_round_op.py
test/cinn/ops/test_round_op.py
+2
-2
test/cinn/ops/test_rsqrt_op.py
test/cinn/ops/test_rsqrt_op.py
+2
-2
test/cinn/ops/test_scale_op.py
test/cinn/ops/test_scale_op.py
+2
-2
test/cinn/ops/test_scatter_add.py
test/cinn/ops/test_scatter_add.py
+2
-2
test/cinn/ops/test_scatter_assign_op.py
test/cinn/ops/test_scatter_assign_op.py
+2
-2
test/cinn/ops/test_select_op.py
test/cinn/ops/test_select_op.py
+2
-2
test/cinn/ops/test_sigmoid_op.py
test/cinn/ops/test_sigmoid_op.py
+2
-2
test/cinn/ops/test_sign_op.py
test/cinn/ops/test_sign_op.py
+2
-2
test/cinn/ops/test_sin_op.py
test/cinn/ops/test_sin_op.py
+2
-2
test/cinn/ops/test_sinh_op.py
test/cinn/ops/test_sinh_op.py
+2
-2
test/cinn/ops/test_slice_assign_op.py
test/cinn/ops/test_slice_assign_op.py
+2
-2
test/cinn/ops/test_slice_op.py
test/cinn/ops/test_slice_op.py
+2
-2
test/cinn/ops/test_softmax_op.py
test/cinn/ops/test_softmax_op.py
+2
-2
test/cinn/ops/test_sort_op.py
test/cinn/ops/test_sort_op.py
+1
-2
test/cinn/ops/test_split_op.py
test/cinn/ops/test_split_op.py
+2
-2
test/cinn/ops/test_sqrt_op.py
test/cinn/ops/test_sqrt_op.py
+2
-2
test/cinn/ops/test_squeeze_op.py
test/cinn/ops/test_squeeze_op.py
+1
-2
test/cinn/ops/test_subtract_op.py
test/cinn/ops/test_subtract_op.py
+2
-2
test/cinn/ops/test_sum_op.py
test/cinn/ops/test_sum_op.py
+2
-2
test/cinn/ops/test_tan_op.py
test/cinn/ops/test_tan_op.py
+2
-2
test/cinn/ops/test_tanh_op.py
test/cinn/ops/test_tanh_op.py
+2
-2
test/cinn/ops/test_top_k_op.py
test/cinn/ops/test_top_k_op.py
+2
-2
test/cinn/ops/test_transpose_op.py
test/cinn/ops/test_transpose_op.py
+2
-2
test/cinn/ops/test_triangular_solve_op.py
test/cinn/ops/test_triangular_solve_op.py
+2
-2
test/cinn/ops/test_trunc_op.py
test/cinn/ops/test_trunc_op.py
+2
-2
test/cinn/ops/test_unary_elementwise_op.py
test/cinn/ops/test_unary_elementwise_op.py
+2
-2
test/cinn/ops/test_uniform_random_op.py
test/cinn/ops/test_uniform_random_op.py
+2
-2
test/cinn/ops/test_zero_dim_tensor.py
test/cinn/ops/test_zero_dim_tensor.py
+2
-2
test/cinn/passes/test_auto_cast_pass.py
test/cinn/passes/test_auto_cast_pass.py
+0
-2
test/cinn/passes/test_expand_zero_dim_pass.py
test/cinn/passes/test_expand_zero_dim_pass.py
+0
-2
test/cinn/passes/test_transpose_floding_input_pass.py
test/cinn/passes/test_transpose_floding_input_pass.py
+0
-2
test/cinn/passes/test_transpose_floding_output_pass.py
test/cinn/passes/test_transpose_floding_output_pass.py
+0
-2
test/cinn/test_common.py
test/cinn/test_common.py
+1
-1
test/cinn/test_computation.py
test/cinn/test_computation.py
+2
-3
test/cinn/test_efficientnet.py
test/cinn/test_efficientnet.py
+2
-3
test/cinn/test_facedet.py
test/cinn/test_facedet.py
+2
-3
test/cinn/test_frontend.py
test/cinn/test_frontend.py
+2
-3
test/cinn/test_hlir_framework.py
test/cinn/test_hlir_framework.py
+2
-1
test/cinn/test_ir.py
test/cinn/test_ir.py
+2
-3
test/cinn/test_mobilenetv1.py
test/cinn/test_mobilenetv1.py
+2
-3
test/cinn/test_mobilenetv2.py
test/cinn/test_mobilenetv2.py
+2
-3
test/cinn/test_netbuilder.py
test/cinn/test_netbuilder.py
+2
-3
test/cinn/test_op_benchmark.py
test/cinn/test_op_benchmark.py
+2
-3
test/cinn/test_pe_elementwise.py
test/cinn/test_pe_elementwise.py
+0
-1
test/cinn/test_pe_reduction.py
test/cinn/test_pe_reduction.py
+0
-1
test/cinn/test_pe_transform.py
test/cinn/test_pe_transform.py
+0
-1
test/cinn/test_resnet.py
test/cinn/test_resnet.py
+2
-3
test/cinn/test_resnet18.py
test/cinn/test_resnet18.py
+2
-3
test/cinn/test_resnet50.py
test/cinn/test_resnet50.py
+2
-3
test/cinn/test_squeezenet.py
test/cinn/test_squeezenet.py
+2
-3
未找到文件。
pyproject.toml
浏览文件 @
f4bdfa60
...
...
@@ -97,7 +97,3 @@ ignore = [
"test/dygraph_to_static/test_loop.py"
=
[
"C416"
,
"F821"
]
# Ignore unnecessary lambda in dy2st unittest test_lambda
"test/dygraph_to_static/test_lambda.py"
=
["PLC3002"]
# Temporarily ignore CINN files, it will fix later
"test/cinn/**"
=
[
"F403"
,
]
test/cinn/op_mappers/test_argmax_op.py
浏览文件 @
f4bdfa60
...
...
@@ -16,8 +16,6 @@
import
unittest
from
cinn.common
import
*
from
cinn.frontend
import
*
from
op_mapper_test
import
OpMapperTest
import
paddle
...
...
test/cinn/op_mappers/test_argmin_op.py
浏览文件 @
f4bdfa60
...
...
@@ -16,8 +16,6 @@
import
unittest
from
cinn.common
import
*
from
cinn.frontend
import
*
from
op_mapper_test
import
OpMapperTest
import
paddle
...
...
test/cinn/op_mappers/test_pool2d_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,7 +14,7 @@
import
unittest
from
cinn.common
import
*
from
cinn.common
import
is_compiled_with_cudnn
from
op_mapper_test
import
OpMapperTest
import
paddle
...
...
test/cinn/ops/op_test.py
浏览文件 @
f4bdfa60
...
...
@@ -18,8 +18,17 @@ import struct
import
unittest
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
(
BFloat16
,
Bool
,
DefaultHostTarget
,
DefaultNVGPUTarget
,
Float
,
Float16
,
Int
,
UInt
,
is_compiled_with_cuda
,
)
from
cinn.runtime
import
seed
as
cinn_seed
import
paddle
...
...
test/cinn/ops/test_abs_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_acos_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_acosh_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_add_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_arange_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_argmax_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,10 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_argmin_op.py
浏览文件 @
f4bdfa60
...
...
@@ -16,8 +16,8 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_argsort_op.py
浏览文件 @
f4bdfa60
...
...
@@ -16,8 +16,8 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_asin_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_asinh_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_atan2_op.py
浏览文件 @
f4bdfa60
...
...
@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_atan_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_atanh_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_batch_norm_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_binary_elementwise_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,12 +13,11 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import
unittest
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
import
paddle
...
...
test/cinn/ops/test_bitcast_convert_op.py
浏览文件 @
f4bdfa60
...
...
@@ -16,8 +16,8 @@ import unittest
from
struct
import
pack
,
unpack
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
import
paddle
...
...
test/cinn/ops/test_bitwise_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_broadcast_to_op.py
浏览文件 @
f4bdfa60
...
...
@@ -17,8 +17,8 @@
import
unittest
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
Float
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
import
paddle
...
...
test/cinn/ops/test_broadcast_to_op_new.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_cast_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_cbrt_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_ceil_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_cholesky_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_clz_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_comparison_op.py
浏览文件 @
f4bdfa60
...
...
@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_concat_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_constant_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_conv2d_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,9 +14,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.runtime
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
cinn.runtime
import
set_cinn_cudnn_deterministic
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_cos_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,9 +13,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_cosh_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_depthwise_conv2d_op.py
浏览文件 @
f4bdfa60
...
...
@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cudnn
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_divide_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_dropout_infer_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_erf_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_exp_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_expand_dims.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_fill_constant_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_floor_divide_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_floor_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_gather_nd_op.py
浏览文件 @
f4bdfa60
...
...
@@ -20,8 +20,8 @@ import unittest
from
itertools
import
product
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
Int
,
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
import
paddle
...
...
test/cinn/ops/test_gather_op.py
浏览文件 @
f4bdfa60
...
...
@@ -18,8 +18,8 @@ import logging
import
os
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
Int
,
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_gaussian_random_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_gelu_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_identity_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_is_finite_op.py
浏览文件 @
f4bdfa60
...
...
@@ -16,8 +16,8 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_is_inf_op.py
浏览文件 @
f4bdfa60
...
...
@@ -16,8 +16,8 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_is_nan_op.py
浏览文件 @
f4bdfa60
...
...
@@ -16,8 +16,8 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_isclose_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_left_shift_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_log_op.py
浏览文件 @
f4bdfa60
...
...
@@ -12,8 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_logical_and_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_logical_not_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_logical_or_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_logical_right_shift_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_logical_xor_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_lookup_table_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_matmul_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_max_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_min_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_mod_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_mul_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_multiply_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_negative_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_one_hot_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_pool2d_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cudnn
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_popc_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_pow_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_randint_op.py
浏览文件 @
f4bdfa60
...
...
@@ -16,8 +16,8 @@
import
unittest
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
import
paddle
...
...
test/cinn/ops/test_reciprocal_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,7 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_reduce_op.py
浏览文件 @
f4bdfa60
...
...
@@ -17,8 +17,8 @@
import
unittest
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
Bool
,
Float
,
Int
,
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
import
paddle
...
...
test/cinn/ops/test_reduce_op_new.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_relu6_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_relu_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_remainder_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_repeat_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_reshape_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_resize_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,9 +15,6 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
# paddle resize is based on cv2 module
# This test requires cv2 module (pip3.6 install opencv_python==3.2.0.7)
# @OpTestTool.skip_if(not is_compiled_with_cuda(),
...
...
test/cinn/ops/test_reverse_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_right_shift_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_round_op.py
浏览文件 @
f4bdfa60
...
...
@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_rsqrt_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_scale_op.py
浏览文件 @
f4bdfa60
...
...
@@ -13,8 +13,8 @@
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_scatter_add.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
Float
,
Int
,
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
,
run_test
...
...
test/cinn/ops/test_scatter_assign_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_select_op.py
浏览文件 @
f4bdfa60
...
...
@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_sigmoid_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_sign_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_sin_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_sinh_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_slice_assign_op.py
浏览文件 @
f4bdfa60
...
...
@@ -15,8 +15,8 @@
# limitations under the License.
import
numpy
as
np
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_slice_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_softmax_op.py
浏览文件 @
f4bdfa60
...
...
@@ -12,8 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_sort_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
from
op_test_helper
import
TestCaseHelper
,
run_test
...
...
test/cinn/ops/test_split_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_sqrt_op.py
浏览文件 @
f4bdfa60
...
...
@@ -14,8 +14,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from
cinn.common
import
*
from
cinn.frontend
import
*
from
cinn.common
import
is_compiled_with_cuda
from
cinn.frontend
import
NetBuilder
from
op_test
import
OpTest
,
OpTestTool
from
op_test_helper
import
TestCaseHelper
...
...
test/cinn/ops/test_squeeze_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_subtract_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_sum_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_tan_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_tanh_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_top_k_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_transpose_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_triangular_solve_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_trunc_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_unary_elementwise_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_uniform_random_op.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/ops/test_zero_dim_tensor.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/passes/test_auto_cast_pass.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/passes/test_expand_zero_dim_pass.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/passes/test_transpose_floding_input_pass.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/passes/test_transpose_floding_output_pass.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_common.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_computation.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_efficientnet.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_facedet.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_frontend.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_hlir_framework.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_ir.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_mobilenetv1.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_mobilenetv2.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_netbuilder.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_op_benchmark.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_pe_elementwise.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_pe_reduction.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_pe_transform.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_resnet.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_resnet18.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_resnet50.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
test/cinn/test_squeezenet.py
浏览文件 @
f4bdfa60
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录