- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 95 for emitError (0.14 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/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/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/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) -
tensorflow/compiler/mlir/lite/transforms/trim_functions_tf.cc
for (auto func : getOperation().getOps<func::FuncOp>()) { auto walk_result = func.walk([&](func::CallOp op) -> WalkResult { if (!symbol_table.lookup<func::FuncOp>(op.getCallee())) return getOperation().emitError() << func.getName() << " is not in the funcs allowlist"; return WalkResult::advance(); }); if (walk_result.wasInterrupted()) return signalPassFailure(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 07 21:08:41 UTC 2022 - 4.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/remove_var_init_by_const.cc
module_op, /*initializer_type=*/kTfSavedModelInitializerRestoreType); if (init_func_op) { if (failed( applyPatternsAndFoldGreedily(init_func_op, std::move(patterns)))) { init_func_op->emitError( "Failed to remove variable assignment by const patterns."); signalPassFailure(); } } else { LOG(INFO) << "Initializer function with type 'restore_op' does not exist. "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 03 12:04:03 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc
auto module_op = getOperation(); patterns.add<CastBf16OpsToF32>(ctx); populateWithGenerated(patterns); if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) { module_op.emitError() << "quant-cast-bf16-ops-to-f32 failed."; signalPassFailure(); } } } // namespace // Creates an instance of the Cast BF16 ops to F32 pass.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 4.5K bytes - Viewed (0)