Browse Source

!12817 numpy-native deprecate nn.MatMul

From: @jachua
Reviewed-by: 
Signed-off-by:
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 4 years ago
parent
commit
50d0c49dcd
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      mindspore/nn/layer/math.py

+ 2
- 0
mindspore/nn/layer/math.py View File

@@ -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__()



Loading…
Cancel
Save