- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 208 for emitError (0.32 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_pass.cc
target.addLegalDialect<arith::ArithDialect>(); if (failed(applyPartialConversion(getOperation(), target, std::move(patterns)))) { getOperation().emitError("Composite lowering pass failed."); signalPassFailure(); } } } // namespace // Creates an instance of the pass. std::unique_ptr<OperationPass<ModuleOp>> CreateCompositeLoweringPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 23:16:05 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/lift_as_function_call.cc
if (std::find_if( attr_to_op_map.begin(), attr_to_op_map.end(), [&](auto attr_op) { return std::get<0>(attr_op).getName() == attribute.getName(); }) == attr_to_op_map.end()) { emitError(UnknownLoc::get(&context), "Could not find attribute: " + attribute.getName().str()); return failure(); } Operation* owner_op; for (const auto& [attr, val] : attr_to_op_map) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/modify_io_nodes.cc
new_arg = block.addArgument(arg_type, loc); quantize_op.setOperand(new_arg); } else { input_type.print(llvm::errs() << "Requested input type "); quantize_op.emitError(" Couldn't be modified to the requested type."); return failure(); } new_input_types[i] = arg_type; arg.dropAllUses(); if (quantize_op.use_empty()) { quantize_op.erase();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc
ReplicateOp::ensureTerminator(body, parser.getBuilder(), result.location); if (!llvm::hasSingleElement(body)) return parser.emitError(loc) << "expects a single block region"; Operation& terminator = body.front().back(); if (!isa<ReturnOp>(terminator)) return parser.emitError(loc) << "expects a tf_device.return terminator"; // Get the results type from the terminator type inside the replicate,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_translate.cc
if (!tensorflow::ParseOutputArrayInfo(input_arrays_flag, &inputs).ok()) { return emitError(loc, "parsing input array info failed ") << input_arrays_flag, nullptr; } if (!tensorflow::ParseOutputArrayInfo(output_arrays_flag, &outputs).ok()) { return emitError(loc, "parsing output array info failed ") << output_arrays_flag, nullptr; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 14 19:15:40 UTC 2024 - 9.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/rename_entrypoint_to_main.cc
StringRef getDescription() const final { return "Renames the entrypoint in SavedModel to `main`"; } void runOnOperation() override { auto fail = [&](Operation* op, std::string message) { op->emitError(message); signalPassFailure(); }; DenseMap<StringRef, func::FuncOp> entrypoints; auto module = getOperation(); module.walk([&](func::FuncOp op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/mlrt_dialect.cc
if (keyword == "future") return FutureType::get(getContext()); if (keyword == "promise") return PromiseType::get(getContext()); if (keyword == "async_handle") return AsyncHandleType::get(getContext()); parser.emitError(parser.getNameLoc(), "unknown type: ") << keyword; return mlir::Type(); } // Print a type registered to this dialect. void MlrtDialect::printType(mlir::Type type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_traits.h
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.cc
mlir::DialectAsmParser &parser) const { llvm::StringRef keyword; if (parser.parseKeyword(&keyword)) return mlir::Type(); if (keyword == "tensor") return TFTensorType::get(getContext()); parser.emitError(parser.getNameLoc(), "unknown type: ") << keyword; return mlir::Type(); } // Print a type registered to this dialect. void TensorflowMlrtDialect::printType(mlir::Type type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc
ModuleOp module_op = getOperation(); for (auto init_func_op : GetInitializerFunctions(module_op)) { if (!init_func_op) return; if (init_func_op.getBlocks().size() != 1) { init_func_op.emitError("expects exactly one block in the MLIR function"); return signalPassFailure(); } auto var_handle_ops = init_func_op.getBlocks().front().getOps<VarHandleOp>();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.6K bytes - Viewed (0)