- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 208 for emitError (0.13 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_freeze_variables.cc
auto input_shapes_attr = func_op->getAttrOfType<ArrayAttr>(kTfInputShapesAttr); if (!input_shapes_attr) return success(); if (input_shapes_attr.size() != func_op.getNumArguments()) { return func_op->emitError( "Number of arguments and 'tf._input_shapes' " "attribute size do not match. ") << "Num args: " << func_op.getNumArguments()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 09:56:53 UTC 2024 - 19.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_device_inference.cc
bool* changed = nullptr) { auto res = result->AddResourceDevice(resource, device, changed); if (failed(res)) { error_reporting_op->emitError() << "Conflicting device assignment for resource"; } return res; } // Extracts and canonicalizes the device attribute. inline StringRef GetDeviceAttr(func::FuncOp func, int arg_no) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 03:47:00 UTC 2023 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/pick_subgraphs.cc
if (impl_iter == func_impls.end()) { call_op.emitError( "we cannot find corresponding implementation for this call op"); signalPassFailure(); } for (auto impl : impl_iter->second) { auto inference_device_type = GetInferenceDeviceTypeForOp(impl); if (!inference_device_type.has_value()) { impl.emitError("we cannot find inference device type for this func");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 24 15:10:02 UTC 2022 - 19.7K 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) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/compute_cost.cc
auto interface_name = GetInterFaceName(func); if (!interface_name.has_value()) continue; auto target = GetTargetAnnotation(func); if (!target.has_value()) { func.emitError("we cannot get hardware info for this function."); signalPassFailure(); } float total_cost = GetCostForFunc(&func, *target); OpBuilder builder(func); UpdateCost(func, total_cost, &builder);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 24 15:10:02 UTC 2022 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.cc
int32_t container_size = get_resource_op->getAttrOfType<mlir::ArrayAttr>("container").size(); if (!(indices_size == shared_name_size && shared_name_size == container_size)) { return get_resource_op->emitError() << "length of attribute arrays do not match. indices = " << indices_size << ", shared_name = " << shared_name_size << ", container = " << container_size; } return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/rewrite_tpu_embedding_ops.cc
// failure. template <typename OpT> LogicalResult GetOp(Region* region, OpT* result) { *result = {}; for (auto op : region->getOps<OpT>()) { if (*result) return op.emitError("should be unique within a function"); *result = op; } return success(); } LogicalResult RunOnRegion(Region* region) { RecvTPUEmbeddingActivationsOp recv_op;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 22:55:42 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc
patterns.add<RemoveTpuOp>(ctx); patterns.add<RemoveIdentity>(ctx); if (failed(applyPatternsAndFoldGreedily(module_op, std::move(patterns)))) { module_op.emitError() << "quant-convert-tpu-model-to-cpu pattern " "conversion did not converge."; signalPassFailure(); return; } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0)