From cff7c1541521676b338ed416b586cda78266f3fc Mon Sep 17 00:00:00 2001 From: huangmengxi Date: Mon, 8 Mar 2021 10:05:36 +0800 Subject: [PATCH] deprecate nn.MatMul --- mindspore/nn/layer/math.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mindspore/nn/layer/math.py b/mindspore/nn/layer/math.py index 8ae9014d68..ca3b750925 100644 --- a/mindspore/nn/layer/math.py +++ b/mindspore/nn/layer/math.py @@ -18,6 +18,7 @@ import numpy as np from mindspore.ops import operations as P from mindspore.ops.operations import _inner_ops as inner from mindspore.common.tensor import Tensor +from mindspore.common._decorator import deprecated from mindspore.ops.primitive import constexpr from mindspore.ops import functional as F from ..cell import Cell @@ -866,6 +867,7 @@ class MatMul(Cell): (3, 2, 4) """ + @deprecated('1.2', 'ops.matmul', False) def __init__(self, transpose_x1=False, transpose_x2=False): super(MatMul, self).__init__()