/third_party/mindspore/mindspore/ccsrc/frontend/operator/ |
D | cc_implementations.cc | 95 MS_EXCEPTION(NotSupportError) << "Unsupported operation type."; in IsSignedIntOverflow() 101 MS_EXCEPTION(ValueError) << "Overflow of the sum of two signed number x: " << std::to_string(x) in InnerScalarAdd() 110 MS_EXCEPTION(ValueError) << "Overflow of the sub of two signed number x: " << std::to_string(x) in InnerScalarSub() 119 MS_EXCEPTION(ValueError) << "Overflow of the mul of two signed number x: " << std::to_string(x) in InnerScalarMul() 128 MS_EXCEPTION(ValueError) << "Divisor could not be zero"; in InnerScalarDiv() 131 MS_EXCEPTION(ValueError) << "Overflow of the div of two signed number x: " << std::to_string(x) in InnerScalarDiv() 149 MS_EXCEPTION(ValueError) << "Could not mod to zero."; in InnerScalarMod() 152 MS_EXCEPTION(ValueError) << "Overflow of the mod of two signed number x: " << std::to_string(x) in InnerScalarMod() 202 …MS_EXCEPTION(NotSupportError) << "Input number of Scalar" << #op_t << " should be 2, but got " << … 256 …MS_EXCEPTION(TypeError) << "Unsupported input type for Scalar" << #op_t << ", type of x:" << x->ty… [all …]
|
/third_party/mindspore/mindspore/core/ops/ |
D | neighborexchange.cc | 52 MS_EXCEPTION(TypeError); in CheckAttr() 56 MS_EXCEPTION(TypeError) << "Attr " << shape_attr_name << " must be a tuple(list, list, ...)."; in CheckAttr() 61 MS_EXCEPTION(TypeError) << "Attr " << shape_attr_name << " must be a tuple(list, list, ...)."; in CheckAttr() 68 MS_EXCEPTION(TypeError); in CheckAttr() 72 MS_EXCEPTION(TypeError) << "Attr " << rank_ids_attr_name << " must be a list[int, int, ...]."; in CheckAttr() 75 …MS_EXCEPTION(ValueError) << "Invalid " << primitive->name() << " attr " << shape_attr_name << " si… in CheckAttr() 90 MS_EXCEPTION(TypeError) << "Attr " << kRecvType << " should be a mindspore data type."; in Check() 98 MS_EXCEPTION(TypeError) << "Attr " << kGroup << " should be a str."; in Check() 118 …MS_EXCEPTION(ArgumentError) << "Input tuple size " << abstract_element.size() << " must be equal t… in Check() 133 MS_EXCEPTION(ArgumentError) << "Input " << i << " should be a tensor."; in Check() [all …]
|
D | dropout_do_mask.cc | 38 …MS_EXCEPTION(ValueError) << "DropoutDoMask's keep_prop input value must in the range [0, 1], but g… in GetAndCheckKeepProp() 56 MS_EXCEPTION(ValueError) << "DropoutDoMask input mask must be 1-dimension."; in InferShape() 60 …MS_EXCEPTION(ValueError) << "DropoutDoMask input mask do not match input, input_x shape: " << x_s… in InferShape() 67 …MS_EXCEPTION(ValueError) << "DropoutDoMask keep_prop's dim must be 0(scalar), but got " << keep_pr… in InferShape() 99 MS_EXCEPTION(TypeError) << "DropoutDoMask's keep_prop input type must be float."; in InferType() 103 … MS_EXCEPTION(ValueError) << "DropoutDoMask's keep_prop input value must in the range [0, 1]."; in InferType() 107 …MS_EXCEPTION(TypeError) << "The DropoutDoMask's keep_prop input must be a float number or tensor."; in InferType()
|
D | addn.cc | 31 MS_EXCEPTION(TypeError) << "The input of AddN must be list or tuple of tensors."; in AddNInferShape() 54 …MS_EXCEPTION(ValueError) << "The primitive[" << primitive->name() << "]'s input shape must be same… in AddNInferShape() 69 MS_EXCEPTION(TypeError) << "The input of AddN must be list or tuple of tensors."; in AddNInferType()
|
D | assign.cc | 55 … MS_EXCEPTION(ValueError) << "For " << prim_name << ", the rank of value is " << value_shape.size() in InferImplAssign() 61 MS_EXCEPTION(ValueError) << "For " << prim_name << ", the shape of value is " in InferImplAssign()
|
D | assert.cc | 51 MS_EXCEPTION(ValueError) << "condition value must be `true` when only one value contained."; in AssertInfer() 62 MS_EXCEPTION(ValueError) << "condition value must be `true` when only one value contained."; in AssertInfer()
|
D | dynamic_broadcast_gradient_args.cc | 36 MS_EXCEPTION(TypeError) << prim_name << " input must be 1-D, but dims is " << input_size; in CheckInputsAndGetShape() 51 MS_EXCEPTION(TypeError) << prim_name << " input must be a tuple or Tensor."; in CheckInputsAndGetShape()
|
D | batch_matmul.cc | 41 …MS_EXCEPTION(ValueError) << "For BatchMatMul, input x, y should have the same dimension size and s… in BatchMatmulInferShape() 47 … MS_EXCEPTION(ValueError) << "For " << prim_name << " shapes in dim[" << i << "] are not the same" in BatchMatmulInferShape() 62 …MS_EXCEPTION(ValueError) << "For " << prim_name << " evaluator shapes of inputs can not do this op… in BatchMatmulInferShape()
|
D | strided_slice.cc | 50 MS_EXCEPTION(ValueError) << "the strides must be non-zero but got " << strides; in get_stride_with_not_zero() 105 MS_EXCEPTION(ValueError) << "when shrink axis, the stride cannot be negative number"; in EllipsisInferShape() 125 MS_EXCEPTION(ValueError) << "StridedSlice's input strides cannot contain 0."; in CheckAndGetValidStrides() 175 MS_EXCEPTION(ValueError) << "when shrink axis, the stride cannot be negative number"; in ComputeInferShape() 253 MS_EXCEPTION(ValueError) << buffer.str(); in set_ellipsis_mask()
|
D | broadcast_to.cc | 44 MS_EXCEPTION(ValueError) << " -1 in init shape is in an incompatible " in BroadcastToInferShape() 57 MS_EXCEPTION(ValueError) << "Not support shapes for broadcast, x_shape: " in BroadcastToInferShape()
|
D | select.cc | 65 MS_EXCEPTION(ValueError) << "The x_shape is not same as y_shape and cond_shape"; in SelectInferShape() 79 …MS_EXCEPTION(TypeError) << prim_name << "the x_type " << x_type->ToString() << " must be the same … in SelectInferType() 176 MS_EXCEPTION(TypeError) << "Select not supported type " << result_type->ToString(); in SelectInferValue()
|
D | transpose.cc | 52 …MS_EXCEPTION(ValueError) << "The dimension of x " << x_shape.size() << " and perm " << p_value.siz… in InferShape() 66 MS_EXCEPTION(ValueError) << "The value of perm is wrong"; in InferShape()
|
/third_party/mindspore/mindspore/core/utils/ |
D | check_convert_utils.cc | 320 MS_EXCEPTION(ValueError) << buffer.str(); in CheckPositiveVector() 335 MS_EXCEPTION(ValueError) << buffer.str(); in CheckString() 344 MS_EXCEPTION(ValueError) << buffer.str(); in CheckString() 351 …MS_EXCEPTION(NotExistsError) << "compare_operator " << compare_operator << " cannot find in the co… in CheckInteger() 364 …MS_EXCEPTION(NotExistsError) << "compare_operator " << compare_operator << " cannot find in the co… in CheckInteger() 367 MS_EXCEPTION(ValueError) << buffer.str(); in CheckInteger() 376 MS_EXCEPTION(ValueError) << "The " << index << "'s input of " << prim_name << " is nullptr."; in CheckInputArgs() 384 MS_EXCEPTION(ValueError) << "The primitive[" << prim_name << "]'s input index[" << index in GetInputTensorType() 389 …MS_EXCEPTION(ValueError) << "The primitive[" << prim_name << "]'s input index[" << index << "] is … in GetInputTensorType() 394 …MS_EXCEPTION(ValueError) << "The primitive[" << prim_name << "]'s input index[" << index << "] is … in GetInputTensorType() [all …]
|
D | check_convert_utils.h | 169 …MS_EXCEPTION(NotExistsError) << "compare_operator " << compare_operator << " cannot find in the co… in CheckValue() 182 MS_EXCEPTION(NotExistsError) << "compare_operator " << compare_operator in CheckValue() 186 MS_EXCEPTION(ValueError) << buffer.str(); in CheckValue() 194 …MS_EXCEPTION(NotExistsError) << "compare_operator " << compare_operator << " cannot find in the co… in CheckInRange() 197 …MS_EXCEPTION(ArgumentError) << "the check range left must be smaller than right number bug got [ "… in CheckInRange() 211 MS_EXCEPTION(NotExistsError) << "compare_operator " << compare_operator in CheckInRange() 217 MS_EXCEPTION(ValueError) << buffer.str(); in CheckInRange() 234 …MS_EXCEPTION(NotSupportError) << "Only supported equal to compare two vectors but got " << iter->s… 236 …MS_EXCEPTION(UnknownError) << "Cannot find the operator " << compare_type << "in the compare map!"; 249 …MS_EXCEPTION(NotExistsError) << "compare_operator " << compare_type << " cannot find in the compar… [all …]
|
/third_party/mindspore/mindspore/core/abstract/ |
D | prim_structures.cc | 122 MS_EXCEPTION(TypeError) << "MakeSlice eval " << index in InferImplMakeSlice() 132 MS_EXCEPTION(TypeError) << "MakeSlice eval the input tensor must be a const tensor."; in InferImplMakeSlice() 135 …MS_EXCEPTION(TypeError) << "MakeSlice eval the input tensor must contain only one element, but got… in InferImplMakeSlice() 146 … MS_EXCEPTION(TypeError) << "MakeSlice eval the input tensor type must be int or bool, but got " in InferImplMakeSlice() 150 …MS_EXCEPTION(TypeError) << "MakeSlice eval " << index << " inputs should scalar, None or Tensor, b… in InferImplMakeSlice() 173 …MS_EXCEPTION(IndexError) << op_name << " evaluator index should be an int64 number, but got " << i… in InferTupleOrListGetItem() 178 …MS_EXCEPTION(IndexError) << op_name << " evaluator index should be in range[-" << SizeToLong(nelem… in InferTupleOrListGetItem() 201 MS_EXCEPTION(IndexError) << op_name << " evaluator index should be an int64 number, but got " in InferTupleOrListSetItem() 209 …MS_EXCEPTION(IndexError) << op_name << " evaluator the index: " << idx_v << " to set out of range:… in InferTupleOrListSetItem() 255 …MS_EXCEPTION(KeyError) << "The key " << key_str << " does not exist in the dict:" << args_spec_lis… in InferImplDictGetItem() [all …]
|
D | prim_others.cc | 214 …MS_EXCEPTION(TypeError) << "The dtype of indices must be a Int, but got " << indices_dtype->ToStri… in InferImplMakeRowTensor() 218 …MS_EXCEPTION(TypeError) << "Indices must be a 1 dimension tensor, but got a " << indices_shp.size() in InferImplMakeRowTensor() 223 …MS_EXCEPTION(TypeError) << "The first dimension of indices must be the same with the first dimensi… in InferImplMakeRowTensor() 229 …MS_EXCEPTION(TypeError) << "The element type of dense_shape must be Int, but got " << elem_type->T… in InferImplMakeRowTensor() 244 …MS_EXCEPTION(TypeError) << "The size of dense_shape must be the same with the dimension of values " in InferImplMakeRowTensor() 249 … MS_EXCEPTION(TypeError) << "The " << i << "th element of dense_shape must be positive, but got " in InferImplMakeRowTensor() 254 … MS_EXCEPTION(TypeError) << "The " << i << "th element of dense_shape must be same with the " << i in InferImplMakeRowTensor() 320 …MS_EXCEPTION(TypeError) << "The dtype of indices must be a Int, but got " << indices_dtype->ToStri… in InferImplMakeSparseTensor() 324 …MS_EXCEPTION(TypeError) << "Indices must be a 2 dimension tensor, but got a " << indices_shp.size() in InferImplMakeSparseTensor() 329 … MS_EXCEPTION(TypeError) << "Values must be a 1 dimension tensor, but got a " << values_shp.size() in InferImplMakeSparseTensor() [all …]
|
D | prim_statement.cc | 78 …MS_EXCEPTION(ValueError) << op_name << " index must be a 0 dimension tensor, but got a " << input_… in InferImplSwitchLayer() 83 MS_EXCEPTION(ValueError) << op_name << " index must be a int32, but got " << dtype->ToString(); in InferImplSwitchLayer() 90 …MS_EXCEPTION(ValueError) << op_name << " support at least 1 and at most " << maximum_layer_num << … in InferImplSwitchLayer() 97 …MS_EXCEPTION(ValueError) << op_name << " requires that the 2th arg be tuple of functions, but got " in InferImplSwitchLayer()
|
D | param_validator.h | 91 …MS_EXCEPTION(ValueError) << op << " evaluator args list index out of bound, size " << args_spec_li… in ABSTRACT_REPORT_NAME_TRAITS() 96 …MS_EXCEPTION(TypeError) << "Operator " << op << " input[" << index << "] should be " << ReportName… in ABSTRACT_REPORT_NAME_TRAITS() 110 …MS_EXCEPTION(TypeError) << "Expected type " << ReportNameTraits<T>::name << ", but got " << type->… in CheckArgsSpec()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/ |
D | gpu_kernel.h | 149 MS_EXCEPTION(ValueError) << src.size() << "-D data is not supported!"; in ShapeNdTo4d() 184 …MS_EXCEPTION(ValueError) << "Invalid size of input shape " << shape.size() << "-D with dimA " << l… in SetDimA() 201 …MS_EXCEPTION(ValueError) << "Invalid size of input shape " << shape.size() << "-D with strideA " <… in SetStrideA() 254 MS_EXCEPTION(ValueError) in CheckBroadcast4TensorOp() 270 …MS_EXCEPTION(ValueError) << "The total size of the tensor exceeds the max_limit of 2 Giga-elements… in CheckTensorSize() 280 … MS_EXCEPTION(ValueError) << "cudnnSetTensorNdDescriptor don't support" << shape.size() << "D."; in CudnnSetTensorNdDescriptor() 304 MS_EXCEPTION(TypeError) << Type << " is not supported."; in GetCudnnDataType() 311 MS_EXCEPTION(TypeError) << Type << " is not supported."; in GetCudaDataType()
|
/third_party/mindspore/mindspore/ccsrc/runtime/device/ascend/ |
D | ascend_memory_manager.cc | 68 …MS_EXCEPTION(DeviceProcessError) << "rtMalloc mem size[" << device_mem_size_ << "] fail, ret[" << … in MallocDeviceMemory() 229 MS_EXCEPTION(DeviceProcessError) << "SwapIn rtMemcpy failed."; in SwapIn() 234 MS_EXCEPTION(DeviceProcessError) << "SwapIn rtMemcpyAsync failed."; in SwapIn() 246 MS_EXCEPTION(DeviceProcessError) << "SwapOut rtMemcpy failed."; in SwapOut() 251 MS_EXCEPTION(DeviceProcessError) << "SwapOut rtMemcpyAsync failed."; in SwapOut()
|
/third_party/mindspore/mindspore/core/ops/fusion/ |
D | full_connection.cc | 84 MS_EXCEPTION(ValueError) << "Full Connection axis is invalid"; in FullConnectionInfer() 92 MS_EXCEPTION(ValueError) << "Input1 size is invalid"; in FullConnectionInfer() 100 MS_EXCEPTION(ValueError) << "Bias size is invalid"; in FullConnectionInfer()
|
/third_party/mindspore/mindspore/core/ir/ |
D | pattern_matcher.h | 69 …MS_EXCEPTION(ValueError) << "A Pattern wasn't captured for this Token before the call to GetNode."; in GetNode() 134 …MS_EXCEPTION(ValueError) << "A Node wasn't captured for this Pattern before attempting to get it."; in GetOriginalNode() 181 …MS_EXCEPTION(ValueError) << "A Node wasn't captured for this Pattern before attempting to get it."; in GetOriginalNode() 427 …MS_EXCEPTION(ValueError) << "A Node wasn't captured for this Pattern before attempting to get its … 437 …MS_EXCEPTION(ValueError) << "A Node wasn't captured for this Pattern before attempting to get it."; 481 MS_EXCEPTION(ValueError) << "WithShapeAs is trying to use a nullptr node."; 491 …MS_EXCEPTION(ValueError) << "WithShapeAs is trying to use a Pattern token without previously captu… 502 …MS_EXCEPTION(ValueError) << "Must use a PConstant with `any_value = true` to use the value of anot… 505 …MS_EXCEPTION(ValueError) << "WithValueOf is trying to use a Pattern token without previously captu… 517 MS_EXCEPTION(ValueError) << "NewValue is valid only for scalar PConstants."; [all …]
|
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/ |
D | primitive_py.cc | 101 MS_EXCEPTION(TypeError) << "For user define net bprop, the gradients number: " << grads.size() in check_bprop_out() 108 MS_EXCEPTION(ValueError) << "When user defines the net bprop,, the gradient of the " << i in check_bprop_out() 119 MS_EXCEPTION(TypeError) << "When user defines the net bprop, the gradient of the " << i in check_bprop_out() 125 MS_EXCEPTION(ValueError) << "When user defines the net bprop, the gradient of the " << i in check_bprop_out() 154 MS_EXCEPTION(TypeError) << "The output gradient should be a tuple!"; in CheckHookConsistency() 160 …MS_EXCEPTION(ValueError) << "The tuple size of output gradient should be " << expected_out_tuple.s… in CheckHookConsistency() 171 MS_EXCEPTION(TypeError) << "The output gradient should be a tensor!"; in CheckHookConsistency() 179 …MS_EXCEPTION(ValueError) << "The output gradient is not consistent with the expected, it should be… in CheckHookConsistency()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/ |
D | tbe_kernel_parallel_build.cc | 96 MS_EXCEPTION(ArgumentError) << "Build Failed. wait one ret:" << ret << ", task id:" << task_id in TbeOpParallelBuild() 101 …MS_EXCEPTION(ArgumentError) << "task compile Failed, task id:" << task_id << ", cause:" << task_re… in TbeOpParallelBuild() 153 MS_EXCEPTION(ArgumentError) << "can find pre task_id:" << task_id; in PreTaskFinishProcess() 173 MS_EXCEPTION(ArgumentError) << "can find task_id:" << task_id; in TaskFinishProcess() 180 MS_EXCEPTION(ArgumentError) << "Can not find .json file or the binary .o file for op " in TaskFinishProcess()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/ |
D | common_utils.cc | 266 MS_EXCEPTION(ArgumentError) << "Illegal input device dtype:" << dtypes; in DtypeToTypeId() 274 MS_EXCEPTION(ArgumentError) << "Illegal input dtype." << TypeIdLabel(type_id); in TypeId2String() 287 MS_EXCEPTION(ArgumentError) << "Illegal input dtype:" << dtype; in Dtype2ShortType() 296 MS_EXCEPTION(ArgumentError) << "Illegal input dtype:" << dtype; in GetDtypeNbyte() 378 MS_EXCEPTION(ArgumentError) << "Dynamic output is unsupported multi output!"; in SetOutputKernelBuilderInfo() 571 MS_EXCEPTION(ArgumentError) << "Index is out of the size of anf_node inputs. Node info : [" in GetKernelInput() 595 MS_EXCEPTION(ArgumentError) << "Input [" << i << "][" << input->DebugString(2) << "] of [" in GetInputIndex() 640 MS_EXCEPTION(ArgumentError) << "Input [" << i << "][" << input->DebugString(2) << "] of [" in GetInputIndex() 667 MS_EXCEPTION(ArgumentError) << "Output [" << i << "][" << output->DebugString(2) << "] of [" in GetOutputIndex() 740 MS_EXCEPTION(ArgumentError) << "input_idx [" << input_idx << "] is out of index of inputs of [" in GetInputTensorValue()
|