Home
last modified time | relevance | path

Searched refs:emitError (Results 1 – 25 of 84) sorted by relevance

1234

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/ir/
Dtf_saved_model.cc66 return global_tensor.emitError() << "'type' and 'value' attributes should " in Verify()
71 return global_tensor.emitError() in Verify()
97 return op->emitError() in VerifyIndexPath()
109 return op->emitError() << "'tf_saved_model.index_path' elements should " in VerifyIndexPath()
128 return op->emitError() << "'tf_saved_model.bound_input' attribute should " in verifyRegionArgAttribute()
135 return op->emitError() << "'tf_saved_model.bound_input' attribute must " in verifyRegionArgAttribute()
142 return op->emitError() in verifyRegionArgAttribute()
148 return op->emitError() << "bound input for immutable " in verifyRegionArgAttribute()
159 return op->emitError() << "unknown tf_saved_model dialect arg attribute '" in verifyRegionArgAttribute()
170 return op->emitError() << "unknown tf_saved_model dialect result attribute '" in verifyRegionResultAttribute()
[all …]
Dtf_executor.cc142 parser.emitError(parser.getNameLoc()) in parseType()
253 return parser.emitError(loc) << "expects a single block region"; in ParseGraphOp()
262 return parser.emitError(loc) << "expects a tf_executor.fetch terminator"; in ParseGraphOp()
481 return parser.emitError(parser.getNameLoc()) in ParseSwitchOp()
491 return parser.emitError(parser.getNameLoc()) in ParseSwitchOp()
593 return parser.emitError(parser.getNameLoc()) in ParseSwitchNOp()
597 return parser.emitError(parser.getNameLoc()) in ParseSwitchNOp()
711 return parser.emitError(parser.getNameLoc()) in ParseMergeOp()
779 return parser.emitError(loc) << " expects at least one data operand"; in ParseEnterOp()
803 return parser.emitError(loc) << " expects only a single data type"; in ParseEnterOp()
[all …]
Dtf_ops.cc167 mlir::emitError(loc, "non-broadcastable operands"); in DeduceEqualCmpOpType()
261 return op->emitError() in VerifyTypesCompatibility()
285 return op->emitError() << "operand type " << ranked_ty in VerifyTypesCompatibility()
336 return emitError(loc, "dimensions can only be 0D or 1D tensor"); in VerifyReductionInputAndDims()
347 return emitError(loc) in VerifyReductionInputAndDims()
1085 return op.emitError("requires inputs to be at least 1d float tensor"); in Verify()
1201 return op.emitError("branches should have " + Twine(expectedNumInputs) + in Verify()
1208 return op.emitError( in Verify()
1215 return op.emitError( in Verify()
1223 return op.emitError(llvm::formatv( in Verify()
[all …]
Dtf_device.cc207 return parser->emitError(loc) << "expects 'n' to be at least 2, got " << *n; in SetOperands()
213 return parser->emitError(loc) in SetOperands()
242 return parser->emitError(loc) << "expects a single block region"; in ParseReplicateOp()
250 return parser->emitError(loc) << "expects a tf_device.return terminator"; in ParseReplicateOp()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Dmaterialize_mlir_passthrough_op.cc51 op->emitError() << "could not parse attached MLIR module"; in runOnFunction()
56 op->emitError() << "MLIR Opaque Op expects a main() entry point\n"; in runOnFunction()
60 op->emitError() << "mismatch between MLIR Opaque Op number of operands (" in runOnFunction()
67 op->emitError() << "mismatch between MLIR Opaque Op number of results (" in runOnFunction()
75 op->emitError() << "MLIR Opaque Op expects a main() entry point with a " in runOnFunction()
Dpromote_resources_to_args.cc65 func.emitError("potential nested resource accesses in function"); in VerifyNoPotentialNestedResourceAccesses()
79 return function.emitError() in PromoteResourcesToArguments()
99 return var_handle_op.emitError("unrecognized resource type"); in PromoteResourcesToArguments()
121 return read_op.emitError("resource is not VarHandleOp"); in PromoteResourcesToArguments()
130 return write_op.emitError("resource is not VarHandleOp"); in PromoteResourcesToArguments()
139 return function.emitError("the function doesn't have an MLIR ReturnOp"); in PromoteResourcesToArguments()
Dtpu_cluster_formation.cc90 return metadata_op.emitError() << kBadTPUReplicateAttrMsg; in CollectMetadata()
95 return metadata_op.emitError() << kBadTPUReplicateAttrMsg; in CollectMetadata()
106 return metadata_op.emitError() in CollectMetadata()
126 return op.emitError() in CollectAndGroupClusterOps()
278 return input->emitError() << "'" << input->getName().getStringRef() in SortTPUReplicatedInputsByIndex()
289 return inputs.front()->emitError() in SortTPUReplicatedInputsByIndex()
304 return launch_op.emitError() << "requires '" << kNumReplicasAttr in ReplicateCluster()
355 return launch_op.emitError() in ReplicateCluster()
441 return launch_op.emitError() in FormClustersInBlock()
Dtf_graph_optimization_pass.cc66 mlir::emitError(mlir::UnknownLoc::get(&ctx)) << status.error_message(); in runOnModule()
85 mlir::emitError(mlir::UnknownLoc::get(&ctx)) in runOnModule()
97 mlir::emitError(mlir::UnknownLoc::get(&ctx)) in runOnModule()
158 mlir::emitError(mlir::UnknownLoc::get(&getContext())) in runOnModule()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Derror_util_test.cc43 emitError(loc) << "Diagnostic message"; in TEST()
57 emitError(loc) << "Diagnostic message reported"; in TEST()
58 emitError(loc) << "Second diagnostic message reported"; in TEST()
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dlstm_utils.cc385 return fused_func_op_.emitError() in InitializeFromFuncAttributes()
396 return fused_func_op_.emitError() in InitializeFromFuncAttributes()
402 return fused_func_op_.emitError() in InitializeFromFuncAttributes()
417 return fused_func_op_.emitError() in Initialize()
431 return fused_func_op_.emitError() << "The weight tensor was not of rank 2"; in Initialize()
435 return fused_func_op_.emitError() in Initialize()
463 return fused_func_op_.emitError() in Initialize()
471 return fused_func_op_.emitError() in Initialize()
592 func_op.emitError() << "Input type is not a ranked tensor type"; in ConvertKerasLSTMLayer()
603 return func_op.emitError() << "The weight should be rank of 2"; in ConvertKerasLSTMLayer()
/external/llvm/include/llvm/IR/
DLLVMContext.h224 void emitError(unsigned LocCookie, const Twine &ErrorStr);
225 void emitError(const Instruction *I, const Twine &ErrorStr);
226 void emitError(const Twine &ErrorStr);
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DLLVMContext.h251 void emitError(unsigned LocCookie, const Twine &ErrorStr);
252 void emitError(const Instruction *I, const Twine &ErrorStr);
253 void emitError(const Twine &ErrorStr);
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dtranslate_tf_dialect_op.cc47 emitError(UnknownLoc::get(context), in MlirToTfNodeDef()
57 op->emitError("failed to convert to TF NodeDef:") in MlirToTfNodeDef()
/external/llvm/lib/Linker/
DLinkModules.cpp62 bool emitError(const Twine &Message) { in emitError() function in __anon5819f7380111::ModuleLinker
154 return emitError("Linking COMDATs named '" + ComdatName + in getComdatLeader()
160 return emitError( in getComdatLeader()
188 return emitError("Linking COMDATs named '" + ComdatName + in computeResultingSelectionKind()
198 return emitError("Linking COMDATs named '" + ComdatName + in computeResultingSelectionKind()
215 return emitError("Linking COMDATs named '" + ComdatName + in computeResultingSelectionKind()
222 return emitError("Linking COMDATs named '" + ComdatName + in computeResultingSelectionKind()
349 return emitError("Linking globals named '" + Src.getName() + in shouldLinkFromSource()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Linker/
DLinkModules.cpp60 bool emitError(const Twine &Message) { in emitError() function in __anonac5088d00111::ModuleLinker
138 return emitError("Linking COMDATs named '" + ComdatName + in getComdatLeader()
144 return emitError( in getComdatLeader()
172 return emitError("Linking COMDATs named '" + ComdatName + in computeResultingSelectionKind()
182 return emitError("Linking COMDATs named '" + ComdatName + in computeResultingSelectionKind()
199 return emitError("Linking COMDATs named '" + ComdatName + in computeResultingSelectionKind()
206 return emitError("Linking COMDATs named '" + ComdatName + in computeResultingSelectionKind()
325 return emitError("Linking globals named '" + Src.getName() + in shouldLinkFromSource()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DLLVMContext.h306 void emitError(unsigned LocCookie, const Twine &ErrorStr);
307 void emitError(const Instruction *I, const Twine &ErrorStr);
308 void emitError(const Twine &ErrorStr);
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_import.cc544 return emitError(loc, err.ToString()), err; in ConvertOp()
565 return emitError(loc, type_or_err.status().ToString()), in ConvertOp()
598 return emitError(loc, status.ToString()), status; in ConvertOp()
646 return emitError(base_loc, err.ToString()), err; in GetOutputTensorIndices()
741 emitError(func_loc, "error reading argument types") in ConvertSubgraph()
766 emitError(func_loc, "error reading return types") in ConvertSubgraph()
791 return emitError(loc, err.ToString()), err; in ConvertSubgraph()
855 return emitError(const_loc, op_or_err.status().ToString()), in ConvertSubgraph()
903 return emitError(const_loc, op_or_err.status().ToString()), in ConvertSubgraph()
940 return emitError(base_loc, "couldn't parse flatbuffer"), nullptr; in FlatBufferToMlir()
[all …]
Dflatbuffer_translate.cc250 error_handler.emitError() in HasValidTFLiteType()
255 error_handler.emitError("expected tensor type, got ") << value.getType(); in HasValidTFLiteType()
262 return error_handler.emitError( in HasValidTFLiteType()
281 return emitError(UnknownLoc::get(context), in IsValidTFLiteMlirModule()
288 return fn.emitError("should have exactly one basic block"), false; in IsValidTFLiteMlirModule()
294 return fn.emitError("invalid TFLite type: ") << arg.getType(), false; in IsValidTFLiteMlirModule()
304 return fn.emitError("invalid TFLite type: ") << result.getType(), in IsValidTFLiteMlirModule()
563 inst->emitError( in BuildBuffer()
605 return mlir::emitError( in BuildTensor()
821 return emitError(loc, "failed to serialize tensorflow node_def"), in CreateFlexOpCustomOptions()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/LTO/
DLTOCodeGenerator.cpp218 emitError(ErrMsg); in writeMergedModules()
229 emitError(ErrMsg); in writeMergedModules()
249 emitError(EC.message()); in compileOptimizedToFile()
259 emitError((Twine("could not write object file: ") + Filename + ": " + in compileOptimizedToFile()
288 emitError(EC.message()); in compileOptimized()
335 emitError(ErrMsg); in determineTarget()
676 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { in emitError() function in LTOCodeGenerator
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dmlir_hlo_to_hlo.cc229 mlir::emitError(mlir::UnknownLoc::get(context)) in Convert_precision_config()
853 if (!literal_or.ok()) return inst->emitError("unsupported elemental type"); in Lower()
878 inst->emitError(llvm::Twine(computation_or.status().error_message())); in Lower()
885 inst->emitError("unable to lower operation of type '" + in Lower()
923 return f.emitError("only single block Function supported"); in RunOnFunction()
1117 return entry_func.emitError() << "requires '" << kPaddingMapAttr in AddDynamicParameterBindings()
1123 return entry_func.emitError( in AddDynamicParameterBindings()
1129 return entry_func.emitError( in AddDynamicParameterBindings()
1133 return entry_func.emitError(PaddingMapMismatchedArraySizeMsg( in AddDynamicParameterBindings()
1145 return entry_func.emitError( in AddDynamicParameterBindings()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dsplit_merged_operands.cc91 op->emitError() in DuplicateValueIfNeeded()
111 func.emitError() << "Failed to duplicate values for the stateful op\n"; in runOnFunction()
Dprepare_composite_functions_tf.cc72 return func_.emitError() in VerifySignature()
77 return func_.emitError() << "Invalid number of results in the embedding " in VerifySignature()
/external/llvm/lib/LTO/
DLTOCodeGenerator.cpp217 emitError(ErrMsg); in writeMergedModules()
228 emitError(ErrMsg); in writeMergedModules()
248 emitError(EC.message()); in compileOptimizedToFile()
284 emitError(EC.message()); in compileOptimized()
331 emitError(ErrMsg); in determineTarget()
668 void LTOCodeGenerator::emitError(const std::string &ErrMsg) { in emitError() function in LTOCodeGenerator
/external/llvm/lib/IR/
DLLVMContext.cpp218 void LLVMContext::emitError(const Twine &ErrorStr) { in emitError() function in LLVMContext
222 void LLVMContext::emitError(const Instruction *I, const Twine &ErrorStr) { in emitError() function in LLVMContext
273 void LLVMContext::emitError(unsigned LocCookie, const Twine &ErrorStr) { in emitError() function in LLVMContext
/external/tensorflow/tensorflow/compiler/mlir/lite/ir/
Dtfl_ops.cc309 emitError(result.location) in buildComparisonBinOp()
330 emitError(result.location) in buildFusedBroadcastableBinOp()
638 emitError(result.location, "params must be atleast rank axis + 1"); in BuildGatherOp()
913 return op.emitError( in Verify()
918 return op.emitError( in Verify()
928 return op.emitError( in Verify()
940 return op.emitError( in Verify()
960 return op.emitError(llvm::formatv( in Verify()
1250 return op.emitError("LSTMOp expected to have two stateful operands"); in Verify()
1262 return op.emitError( in Verify()
[all …]

1234