From 9eb21627aa45ab1a1dce8d51d3e10cee0bd22d30 Mon Sep 17 00:00:00 2001 From: jiangjinsheng Date: Wed, 3 Jun 2020 18:10:01 +0800 Subject: [PATCH] hidden range --- mindspore/ops/operations/__init__.py | 1 - mindspore/ops/operations/array_ops.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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)`.