From 072d08a99513eeb18cbfb6262bda53bb595032a3 Mon Sep 17 00:00:00 2001 From: gaopan12 Date: Sun, 9 Oct 2022 14:48:50 +0800 Subject: [PATCH] fix warnings --- mindspore/core/ops/batch_matmul.cc | 18 ------------------ mindspore/core/ops/batch_matmul.h | 14 -------------- 2 files changed, 32 deletions(-) diff --git a/mindspore/core/ops/batch_matmul.cc b/mindspore/core/ops/batch_matmul.cc index 8cc642d802d..777e0120792 100644 --- a/mindspore/core/ops/batch_matmul.cc +++ b/mindspore/core/ops/batch_matmul.cc @@ -157,24 +157,6 @@ TypePtr BatchMatmulInferType(const PrimitivePtr &prim, const std::vector(value_ptr); -} - -bool BatchMatMul::get_transpose_b() const { - auto value_ptr = GetAttr(kTransposeB); - return GetValue(value_ptr); -} AbstractBasePtr BatchMatmulInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, const std::vector &input_args) { diff --git a/mindspore/core/ops/batch_matmul.h b/mindspore/core/ops/batch_matmul.h index c935ed8dba7..3696889f0c5 100644 --- a/mindspore/core/ops/batch_matmul.h +++ b/mindspore/core/ops/batch_matmul.h @@ -33,20 +33,6 @@ class MIND_API BatchMatMul : public MatMul { MIND_API_BASE_MEMBER(BatchMatMul); /// \brief Constructor. BatchMatMul() : MatMul(kNameBatchMatMul) { InitIOName({"x1", "x2"}, {"output"}); } - /// \brief Init. Refer to the parameters of Python API @ref mindspore.ops.BatchMatmul for the inputs. - void Init(bool transpose_a = false, bool transpose_b = false); - /// \brief Set transpose_a. - void set_transpose_a(bool transpose_a); - /// \brief Set transpose_b. - void set_transpose_b(bool transpose_b); - /// \brief Get transpose_a. - /// - /// \return transpose_a. - bool get_transpose_a() const; - /// \brief Get transpose_b. - /// - /// \return transpose_b. - bool get_transpose_b() const; }; abstract::AbstractBasePtr BatchMatmulInfer(const abstract::AnalysisEnginePtr &, const PrimitivePtr &primitive, const std::vector &input_args);