Home
last modified time | relevance | path

Searched refs:MS_EXCEPTION (Results 1 – 25 of 113) sorted by relevance

12345

/third_party/mindspore/mindspore/ccsrc/frontend/operator/
Dcc_implementations.cc95 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()
202MS_EXCEPTION(NotSupportError) << "Input number of Scalar" << #op_t << " should be 2, but got " << …
256MS_EXCEPTION(TypeError) << "Unsupported input type for Scalar" << #op_t << ", type of x:" << x->ty…
[all …]
/third_party/mindspore/mindspore/core/ops/
Dneighborexchange.cc52 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()
75MS_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()
118MS_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 …]
Ddropout_do_mask.cc38MS_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()
60MS_EXCEPTION(ValueError) << "DropoutDoMask input mask do not match input, input_x shape: " << x_s… in InferShape()
67MS_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()
103MS_EXCEPTION(ValueError) << "DropoutDoMask's keep_prop input value must in the range [0, 1]."; in InferType()
107MS_EXCEPTION(TypeError) << "The DropoutDoMask's keep_prop input must be a float number or tensor."; in InferType()
Daddn.cc31 MS_EXCEPTION(TypeError) << "The input of AddN must be list or tuple of tensors."; in AddNInferShape()
54MS_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()
Dassign.cc55MS_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()
Dassert.cc51 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()
Ddynamic_broadcast_gradient_args.cc36 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()
Dbatch_matmul.cc41MS_EXCEPTION(ValueError) << "For BatchMatMul, input x, y should have the same dimension size and s… in BatchMatmulInferShape()
47MS_EXCEPTION(ValueError) << "For " << prim_name << " shapes in dim[" << i << "] are not the same" in BatchMatmulInferShape()
62MS_EXCEPTION(ValueError) << "For " << prim_name << " evaluator shapes of inputs can not do this op… in BatchMatmulInferShape()
Dstrided_slice.cc50 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()
Dbroadcast_to.cc44 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()
Dselect.cc65 MS_EXCEPTION(ValueError) << "The x_shape is not same as y_shape and cond_shape"; in SelectInferShape()
79MS_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()
Dtranspose.cc52MS_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/
Dcheck_convert_utils.cc320 MS_EXCEPTION(ValueError) << buffer.str(); in CheckPositiveVector()
335 MS_EXCEPTION(ValueError) << buffer.str(); in CheckString()
344 MS_EXCEPTION(ValueError) << buffer.str(); in CheckString()
351MS_EXCEPTION(NotExistsError) << "compare_operator " << compare_operator << " cannot find in the co… in CheckInteger()
364MS_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()
389MS_EXCEPTION(ValueError) << "The primitive[" << prim_name << "]'s input index[" << index << "] is … in GetInputTensorType()
394MS_EXCEPTION(ValueError) << "The primitive[" << prim_name << "]'s input index[" << index << "] is … in GetInputTensorType()
[all …]
Dcheck_convert_utils.h169MS_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()
194MS_EXCEPTION(NotExistsError) << "compare_operator " << compare_operator << " cannot find in the co… in CheckInRange()
197MS_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()
234MS_EXCEPTION(NotSupportError) << "Only supported equal to compare two vectors but got " << iter->s…
236MS_EXCEPTION(UnknownError) << "Cannot find the operator " << compare_type << "in the compare map!";
249MS_EXCEPTION(NotExistsError) << "compare_operator " << compare_type << " cannot find in the compar…
[all …]
/third_party/mindspore/mindspore/core/abstract/
Dprim_structures.cc122 MS_EXCEPTION(TypeError) << "MakeSlice eval " << index in InferImplMakeSlice()
132 MS_EXCEPTION(TypeError) << "MakeSlice eval the input tensor must be a const tensor."; in InferImplMakeSlice()
135MS_EXCEPTION(TypeError) << "MakeSlice eval the input tensor must contain only one element, but got… in InferImplMakeSlice()
146MS_EXCEPTION(TypeError) << "MakeSlice eval the input tensor type must be int or bool, but got " in InferImplMakeSlice()
150MS_EXCEPTION(TypeError) << "MakeSlice eval " << index << " inputs should scalar, None or Tensor, b… in InferImplMakeSlice()
173MS_EXCEPTION(IndexError) << op_name << " evaluator index should be an int64 number, but got " << i… in InferTupleOrListGetItem()
178MS_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()
209MS_EXCEPTION(IndexError) << op_name << " evaluator the index: " << idx_v << " to set out of range:… in InferTupleOrListSetItem()
255MS_EXCEPTION(KeyError) << "The key " << key_str << " does not exist in the dict:" << args_spec_lis… in InferImplDictGetItem()
[all …]
Dprim_others.cc214MS_EXCEPTION(TypeError) << "The dtype of indices must be a Int, but got " << indices_dtype->ToStri… in InferImplMakeRowTensor()
218MS_EXCEPTION(TypeError) << "Indices must be a 1 dimension tensor, but got a " << indices_shp.size() in InferImplMakeRowTensor()
223MS_EXCEPTION(TypeError) << "The first dimension of indices must be the same with the first dimensi… in InferImplMakeRowTensor()
229MS_EXCEPTION(TypeError) << "The element type of dense_shape must be Int, but got " << elem_type->T… in InferImplMakeRowTensor()
244MS_EXCEPTION(TypeError) << "The size of dense_shape must be the same with the dimension of values " in InferImplMakeRowTensor()
249MS_EXCEPTION(TypeError) << "The " << i << "th element of dense_shape must be positive, but got " in InferImplMakeRowTensor()
254MS_EXCEPTION(TypeError) << "The " << i << "th element of dense_shape must be same with the " << i in InferImplMakeRowTensor()
320MS_EXCEPTION(TypeError) << "The dtype of indices must be a Int, but got " << indices_dtype->ToStri… in InferImplMakeSparseTensor()
324MS_EXCEPTION(TypeError) << "Indices must be a 2 dimension tensor, but got a " << indices_shp.size() in InferImplMakeSparseTensor()
329MS_EXCEPTION(TypeError) << "Values must be a 1 dimension tensor, but got a " << values_shp.size() in InferImplMakeSparseTensor()
[all …]
Dprim_statement.cc78MS_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()
90MS_EXCEPTION(ValueError) << op_name << " support at least 1 and at most " << maximum_layer_num << … in InferImplSwitchLayer()
97MS_EXCEPTION(ValueError) << op_name << " requires that the 2th arg be tuple of functions, but got " in InferImplSwitchLayer()
Dparam_validator.h91MS_EXCEPTION(ValueError) << op << " evaluator args list index out of bound, size " << args_spec_li… in ABSTRACT_REPORT_NAME_TRAITS()
96MS_EXCEPTION(TypeError) << "Operator " << op << " input[" << index << "] should be " << ReportName… in ABSTRACT_REPORT_NAME_TRAITS()
110MS_EXCEPTION(TypeError) << "Expected type " << ReportNameTraits<T>::name << ", but got " << type->… in CheckArgsSpec()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/
Dgpu_kernel.h149 MS_EXCEPTION(ValueError) << src.size() << "-D data is not supported!"; in ShapeNdTo4d()
184MS_EXCEPTION(ValueError) << "Invalid size of input shape " << shape.size() << "-D with dimA " << l… in SetDimA()
201MS_EXCEPTION(ValueError) << "Invalid size of input shape " << shape.size() << "-D with strideA " <… in SetStrideA()
254 MS_EXCEPTION(ValueError) in CheckBroadcast4TensorOp()
270MS_EXCEPTION(ValueError) << "The total size of the tensor exceeds the max_limit of 2 Giga-elements… in CheckTensorSize()
280MS_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/
Dascend_memory_manager.cc68MS_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/
Dfull_connection.cc84 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/
Dpattern_matcher.h69MS_EXCEPTION(ValueError) << "A Pattern wasn't captured for this Token before the call to GetNode."; in GetNode()
134MS_EXCEPTION(ValueError) << "A Node wasn't captured for this Pattern before attempting to get it."; in GetOriginalNode()
181MS_EXCEPTION(ValueError) << "A Node wasn't captured for this Pattern before attempting to get it."; in GetOriginalNode()
427MS_EXCEPTION(ValueError) << "A Node wasn't captured for this Pattern before attempting to get its …
437MS_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.";
491MS_EXCEPTION(ValueError) << "WithShapeAs is trying to use a Pattern token without previously captu…
502MS_EXCEPTION(ValueError) << "Must use a PConstant with `any_value = true` to use the value of anot…
505MS_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/
Dprimitive_py.cc101 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()
160MS_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()
179MS_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/
Dtbe_kernel_parallel_build.cc96 MS_EXCEPTION(ArgumentError) << "Build Failed. wait one ret:" << ret << ", task id:" << task_id in TbeOpParallelBuild()
101MS_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/
Dcommon_utils.cc266 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()

12345