diff --git a/mindspore/ops/operations/__init__.py b/mindspore/ops/operations/__init__.py index f00ddb90a0..a69dfdf46c 100644 --- a/mindspore/ops/operations/__init__.py +++ b/mindspore/ops/operations/__init__.py @@ -132,7 +132,6 @@ __all__ = [ 'StridedSlice', 'ReduceSum', 'ReduceMean', - 'Range', 'LayerNorm', 'EmbeddingLookup', 'Rank', diff --git a/mindspore/ops/operations/array_ops.py b/mindspore/ops/operations/array_ops.py index a9c856b7c5..d8adf5f794 100644 --- a/mindspore/ops/operations/array_ops.py +++ b/mindspore/ops/operations/array_ops.py @@ -122,7 +122,7 @@ class SameTypeShape(PrimitiveWithInfer): Checks whether data type and shape of two tensors are the same. Raises: - ValueError: If not the same. + TypeError or ValueError: If not the same. Inputs: - **input_x** (Tensor) - The shape of tensor is :math:`(x_1, x_2, ..., x_R)`.