Home
last modified time | relevance | path

Searched refs:error_message_prefix (Results 1 – 2 of 2) sorted by relevance

/third_party/mindspore/mindspore/core/abstract/
Dparam_validator.cc42 TypePtr CheckType(TypePtr type, const TypePtrList &accepts, const std::string &error_message_prefix in ABSTRACT_REPORT_NAME_DEC()
48 MS_LOG(EXCEPTION) << error_message_prefix << accepts << " but is " << type->ToString(); in ABSTRACT_REPORT_NAME_DEC()
53 const std::string &error_message_prefix) { in CheckTensorDType() argument
58 MS_LOG(EXCEPTION) << error_message_prefix << "requires Tensor but got " << type->ToString(); in CheckTensorDType()
66 return CheckType(ele_type, accepts, error_message_prefix); in CheckTensorDType()
70 const std::string &error_message_prefix) { in CheckTensorsDTypeSame() argument
96 MS_LOG(DEBUG) << error_message_prefix << loginfoBuffer.str(); in CheckTensorsDTypeSame()
97 return CheckTensorDType(sample_tensor, accepts, error_message_prefix); in CheckTensorsDTypeSame()
101 const std::string &error_message_prefix) { in CheckScalarType() argument
110 return CheckType(type, accepts, error_message_prefix); in CheckScalarType()
Dparam_validator.h33 TypePtr CheckType(TypePtr type, const TypePtrList &accepts, const std::string &error_message_prefix
36 const std::string &error_message_prefix);
39 const std::string &error_message_prefix);
42 const std::string &error_message_prefix);