From d6bed5452eb400dbea2b3f3d0ca110085518cf96 Mon Sep 17 00:00:00 2001 From: z00478463 Date: Fri, 22 May 2020 14:59:03 +0800 Subject: [PATCH] for pylint 2nd --- example/resnet50_imagenet2012_THOR/cus_ops/batch_matmul_impl.py | 2 +- example/resnet50_imagenet2012_THOR/cus_ops/cholesky_trsm.py | 2 +- example/resnet50_imagenet2012_THOR/cus_ops/cus_batch_matmul.py | 1 - example/resnet50_imagenet2012_THOR/cus_ops/cus_cholesky_trsm.py | 1 - .../resnet50_imagenet2012_THOR/cus_ops/cus_fused_abs_max1.py | 1 - example/resnet50_imagenet2012_THOR/cus_ops/cus_img2col.py | 1 - example/resnet50_imagenet2012_THOR/cus_ops/cus_matmul_cube.py | 1 - 7 files changed, 2 insertions(+), 7 deletions(-) diff --git a/example/resnet50_imagenet2012_THOR/cus_ops/batch_matmul_impl.py b/example/resnet50_imagenet2012_THOR/cus_ops/batch_matmul_impl.py index 24d7120bd9..bc4ac3a2eb 100644 --- a/example/resnet50_imagenet2012_THOR/cus_ops/batch_matmul_impl.py +++ b/example/resnet50_imagenet2012_THOR/cus_ops/batch_matmul_impl.py @@ -71,5 +71,5 @@ from mindspore.ops.op_info_register import op_info_register ] }""") def CusBatchMatMul(input_x1, input_x2, output, transpose_a=False, transpose_b=True, kernel_name="batchmatmul"): -"""CusBatchMatMul""" + """CusBatchMatMul""" return diff --git a/example/resnet50_imagenet2012_THOR/cus_ops/cholesky_trsm.py b/example/resnet50_imagenet2012_THOR/cus_ops/cholesky_trsm.py index 0e6be53d3e..1a2c4bfb9b 100644 --- a/example/resnet50_imagenet2012_THOR/cus_ops/cholesky_trsm.py +++ b/example/resnet50_imagenet2012_THOR/cus_ops/cholesky_trsm.py @@ -59,5 +59,5 @@ from mindspore.ops.op_info_register import op_info_register ] }""") def CusCholeskyTrsm(input_x, output, kernel_name): -"""CusCholeskyTrsm""" + """CusCholeskyTrsm""" return diff --git a/example/resnet50_imagenet2012_THOR/cus_ops/cus_batch_matmul.py b/example/resnet50_imagenet2012_THOR/cus_ops/cus_batch_matmul.py index 7067458d66..1e72ed9fac 100644 --- a/example/resnet50_imagenet2012_THOR/cus_ops/cus_batch_matmul.py +++ b/example/resnet50_imagenet2012_THOR/cus_ops/cus_batch_matmul.py @@ -35,4 +35,3 @@ class CusBatchMatMul(PrimitiveWithInfer): def infer_dtype(self, data1_dtype, data2_dtype): return data1_dtype - diff --git a/example/resnet50_imagenet2012_THOR/cus_ops/cus_cholesky_trsm.py b/example/resnet50_imagenet2012_THOR/cus_ops/cus_cholesky_trsm.py index fe7aaabf25..d6ea015622 100644 --- a/example/resnet50_imagenet2012_THOR/cus_ops/cus_cholesky_trsm.py +++ b/example/resnet50_imagenet2012_THOR/cus_ops/cus_cholesky_trsm.py @@ -35,4 +35,3 @@ class CusCholeskyTrsm(PrimitiveWithInfer): def infer_dtype(self, data1_dtype): return data1_dtype - diff --git a/example/resnet50_imagenet2012_THOR/cus_ops/cus_fused_abs_max1.py b/example/resnet50_imagenet2012_THOR/cus_ops/cus_fused_abs_max1.py index 5e91ba4224..c49c36ddd4 100644 --- a/example/resnet50_imagenet2012_THOR/cus_ops/cus_fused_abs_max1.py +++ b/example/resnet50_imagenet2012_THOR/cus_ops/cus_fused_abs_max1.py @@ -42,4 +42,3 @@ class CusFusedAbsMax1(PrimitiveWithInfer): def infer_dtype(self, data1_dtype): return data1_dtype - diff --git a/example/resnet50_imagenet2012_THOR/cus_ops/cus_img2col.py b/example/resnet50_imagenet2012_THOR/cus_ops/cus_img2col.py index 96f943e471..e1128291dd 100644 --- a/example/resnet50_imagenet2012_THOR/cus_ops/cus_img2col.py +++ b/example/resnet50_imagenet2012_THOR/cus_ops/cus_img2col.py @@ -49,4 +49,3 @@ class CusImg2Col(PrimitiveWithInfer): def infer_dtype(self, data1_dtype): return data1_dtype - diff --git a/example/resnet50_imagenet2012_THOR/cus_ops/cus_matmul_cube.py b/example/resnet50_imagenet2012_THOR/cus_ops/cus_matmul_cube.py index 7674d1ab0c..e41cb6bc98 100644 --- a/example/resnet50_imagenet2012_THOR/cus_ops/cus_matmul_cube.py +++ b/example/resnet50_imagenet2012_THOR/cus_ops/cus_matmul_cube.py @@ -52,4 +52,3 @@ class CusMatMulCube(PrimitiveWithInfer): def infer_dtype(self, data1_dtype, data2_dtype): return ms.common.dtype.tensor_type(getattr(ms, "float32")) -