- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 208 for emitError (0.12 sec)
-
tensorflow/compiler/mlir/lite/utils/tftext_utils.cc
if (!input_type || !mlir::isa<StringType>(input_type.getElementType()) || !input_type.hasRank()) { return func.emitError() << "Input should be a string tensor"; } const std::vector<int> kValidNumOfOutput = {1, 2, 3}; if (input_type.getRank() >= kValidNumOfOutput.size()) { return func.emitError() << "Unrecognized input rank: " << input_type.getRank(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/error_util_test.cc
auto callsite_loc3 = mlir::CallSiteLoc::get(loc_filtered2, loc3); // Test with filter on. StatusScopedDiagnosticHandler ssdh_filter(&context, false, true); emitError(callsite_loc) << "Error 1"; emitError(callsite_loc2) << "Error 2"; emitError(callsite_loc3) << "Error 3"; Status s_filtered = ssdh_filter.ConsumeStatus(); // Check for the files that should not be filtered.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Feb 26 03:47:51 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_saved_model.cc
return global_tensor.emitError() << "'type' and 'value' attributes should " "have compatible tensor types"; } } if (!global_tensor.getIsMutable()) { if (!mlir::cast<TensorType>(global_tensor.getType()).hasStaticShape()) { return global_tensor.emitError() << "'type' attribute for immutable 'tf_saved_model.global_tensor' "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
// check too. op.emitError() << "Input tensor [" << input_index << "] is a state tensor, but has more than one use."; return failure(); } auto stats = mlir::dyn_cast<DenseFPElementsAttr>(stats_op.getLayerStats()); if (!stats || stats.getNumElements() != 2) { stats_op.emitError("Stats should have 2 values."); return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/materialize_mlir_passthrough_op.cc
if (!nested_module) { op->emitError() << "could not parse attached MLIR module"; return; } func::FuncOp main = dyn_cast<func::FuncOp>(nested_module->lookupSymbol("main")); if (!main) { op->emitError() << "MLIR Opaque Op expects a main() entry point\n"; return; } if (main.getNumArguments() != op->getNumOperands()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc
if (!flexbuffers::VerifyBuffer(opt_data, opt_size)) { return emitError(loc, "invalid custom options"); } const flexbuffers::Vector& v = flexbuffers::GetRoot(opt_data, opt_size).AsVector(); op_name = v[0].AsString().str(); if (!node_def.ParseFromString(v[1].AsString().str())) { return emitError( loc, "failed to parse 'custom_options' data into a valid NodeDef");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_custom_call_to_composite.cc
if (!backendConfig) return op->emitError( "custom_call has no 'composite.backend_config' attribute or the " "attribute is not a dictionary"); auto name = mlir::dyn_cast<StringAttr>(backendConfig.get("name")); if (!name) return op->emitError( "backend_config has no 'name' key or the name value is not a string"); auto attrs =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_graph_optimization_pass.cc
absl::flat_hash_set<Node*> control_ret_nodes; Status status = tensorflow::tf2xla::v2::ConvertMlirToGraph( module_in, confs, &graph, &flib_def, &control_ret_nodes); if (!status.ok()) { mlir::emitError(mlir::UnknownLoc::get(&ctx)) << status.message(); return signalPassFailure(); } // Run each of the passes that were selected. GraphConstructorOptions opts; opts.allow_internal_ops = true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 22:19:26 UTC 2024 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference_pass.cc
absl::StatusOr<SmallVector<SmallVector<int64_t>>> parsed_shapes; if (!input_arg_shapes_.empty()) { parsed_shapes = ParseArgumentShapes(input_arg_shapes_); if (!parsed_shapes.ok()) { getOperation().emitError() << parsed_shapes.status().message(); return signalPassFailure(); } input_shapes_vec = SmallVector<ArrayRef<int64_t>>{parsed_shapes->begin(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc
if (!output_tensor_type || !output_tensor_type.hasStaticShape()) { op.emitError("output type should be static and ranked."); return failure(); } if (output_tensor_type.getRank() == 0) { bool same_scalar = output_tensor_type.getElementType() == input_type; if (!same_scalar) { op.emitError("input and output should have the same scalar types."); } return success(same_scalar);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 21 16:55:41 UTC 2023 - 38.2K bytes - Viewed (0)