- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 208 for emitError (0.14 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_initializer_function_ops_to_main.cc
FetchOp fetch_op = graph_op.GetFetch(); for (const Value fetch : fetch_op.getFetches()) { if (!mlir::isa<tf_executor::ControlType>(fetch.getType())) { fetch_op.emitError(absl::StrFormat( "Validation failed for the initializer function: %s. " "All initializer function's fetches should be " "tf_executor::ControlType. Got: %s.",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun May 12 12:54:52 UTC 2024 - 15.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/cost_model.cc
auto to_hardware = GetTargetHardware(to_hardware_str); if (from_hardware == nullptr) { from_graph.emitError(absl::StrCat( "we cannot find the registered hardware: ", from_hardware_str)); } if (to_hardware == nullptr) { to_graph.emitError(absl::StrCat("we cannot find the registered hardware: ", to_hardware_str)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/utils/utils.cc
StringRef attr_name = attr.getName().strref(); if (!registered.contains(attr_name) && !(GetAllowedAttributes().contains(attr_name) || GetOptionalAttributes().contains(attr_name))) { src->emitError("Denied unregistered attribute was found: " + attr_name); return failure(); } } return success(); } LogicalResult CopyAllowedUnregisteredAttrs(Operation* src, CallOp dst,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 03:08:33 UTC 2023 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/python/mlir_wrapper/mlir_wrapper.cc
ctx.loadAllAvailableDialects(); auto module = mlir::parseSourceFile<mlir::ModuleOp>(SM, &ctx); if (!module) { return false; } if (failed(mlir::verify(*module))) { module->emitError("Invalid MLIR module: failed verification."); return false; } return true; }); init_basic_classes(m); init_types(m); init_builders(m); init_ops(m); init_attrs(m);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 08:41:42 UTC 2023 - 2.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tensorflow/fallback_to_flex_ops.cc
op, /*name=*/"", /*ignore_unregistered_attrs=*/true); if (!node_def.ok()) { op->emitError("Failed to obtain TensorFlow NodeDef: " + node_def.status().ToString()); return false; } std::string node_def_str; if (!(*node_def)->SerializeToString(&node_def_str)) { op->emitError("Failed to serialize tensorflow NodeDef"); return false; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_fake_quant_to_qdq.cc
MLIRContext* ctx = &getContext(); func::FuncOp func = getOperation(); if (failed( ConvertFakeQuantOps(func, ctx, /*use_fake_quant_num_bits=*/false))) { func.emitError() << "quant-convert-fake-quant-to-qdq pass failed."; signalPassFailure(); } // For removing dead FakeQuant* ops RewritePatternSet patterns(ctx);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 15 00:56:15 UTC 2023 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc
if (resource_type.getSubtypes().size() != 1) return function.emitError() << "expects resource type of argument " << resource_arg.getArgNumber() << " to have one subtype, got " << resource_type; auto composite_ops = GetCompositeResourceUserNames(resource_arg); if (!composite_ops.empty()) return function.emitError() << "expects users of resource argument "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc
int num_dims = 4) { int32_t input_zp_value; if (!GetSplatValue(input_zp, input_zp_value)) { emitError(loc, "zero point is expected to be a constant with a single value"); return {}; } if (strides.size() != num_dims || dilations.size() != num_dims) { emitError(loc, absl::StrFormat( "strides and dilations are expected to be %d-element arrays",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 47.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/split_into_island_per_op_pass.cc
} if (!graph_op) { func.emitError("expected function to contain only a graph_op"); signalPassFailure(); return; } if (!(llvm::hasSingleElement(graph_op.GetBody().without_terminator()) && llvm::isa<tf_executor::IslandOp>(graph_op.GetBody().front()))) { graph_op.emitError( "expected graph op to contain only a single island_op and a single "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc
return func.emitError() << "failed to rename StableHLO function " << func.getSymName(); } } if (is_main_func) { main_func_name = func.getSymNameAttr(); } func->setAttr(kFromXlaCallModuleAttrName, builder.getUnitAttr()); } if (!main_func_name) { return stablehlo_module.emitError()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 11.1K bytes - Viewed (0)