- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 57 for emitError (0.32 sec)
-
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/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/tensorflow/transforms/tpu_partitioned_op_conversion.cc
if (!(tensor_type && tensor_type.hasRank())) { return op->emitError() << "cannot convert op with unranked or non-tensor input type " << tensor_type << "."; } int rank = tensor_type.getRank(); if (rank <= partition_dim) { return op->emitError() << "cannot partition " << first_operand_type << " (rank = " << rank << ") along dimension "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc
auto result_type = OpTrait::util::getBroadcastedType(x.getType(), y.getType()); if (!result_type) { if (incompatible_shape_error.getValue()) { mlir::emitError(loc, "non-broadcastable operands"); } else { return UnrankedTensorType::get(builder->getI1Type()); } } auto ranked_type = mlir::dyn_cast<RankedTensorType>(result_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/perception_ops_utils.cc
return func->emitError() << "'" << attr_name << "' attribute for " << kMaxUnpooling << " must be set and has size of " << N; } results->reserve(N); for (Attribute integer_attr : array_attr.getValue()) { IntegerAttr value = mlir::dyn_cast<IntegerAttr>(integer_attr); if (!value) { return func->emitError()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/xla_validate_inputs.cc
// GuaranteeAllFuncsOneUsePass to remove "tf.entry_function" or // "tf_saved_model.initializer_type" attribute from the callee of the // inner calls if the problem ever arises. entry_func->emitError() << "TF2XLA MLIR Non-replicated Phase 1 Bridge expects no nested calls" " of entry functions as they prevent graph traversal in some " "passes from " "working correctly";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 06 19:29:14 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_arith_ops_folder.cc
Location loc) { auto dims_type = mlir::dyn_cast<RankedTensorType>(dims.getType()); if (!dims_type) return success(); if (dims_type.getRank() > 1) return emitError(loc, "dimensions can only be 0D or 1D tensor"); auto input_type = mlir::dyn_cast<RankedTensorType>(input.getType()); if (!input_type) return success(); int64_t rank = input_type.getRank();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/device_util.cc
DeviceNameUtils::ParsedName parsed_name; if (!DeviceNameUtils::ParseFullName( absl::string_view(device.data(), device.size()), &parsed_name)) return mlir::emitError(loc) << "invalid device '" << device << "'"; if (!parsed_name.has_id) return mlir::emitError(loc) << "device '" << device << "' has no id"; *device_ordinal = parsed_name.id; return mlir::success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.4K bytes - Viewed (0)