- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 98 for emitError (0.13 sec)
-
tensorflow/compiler/mlir/lite/utils/nms_utils.cc
failed(AddFloatAttr(func, attrs, "w_scale", &fbb))) return failure(); auto use_regular_nms = mlir::dyn_cast_or_null<BoolAttr>(attrs.get("use_regular_nms")); if (!use_regular_nms) { return func.emitError() << "use_regular_nms attribute is not set or not a bool"; } fbb.Int("use_regular_nms", use_regular_nms.getValue()); fbb.EndMap(start_map); fbb.Finish();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc
// previous optimize global tensors pass). If not, this pass has to fail // since it cannot perform one of its goals. if (global_tensor.getIsMutable()) { if (allow_mutable_tensors) continue; global_tensor.emitError() << "is not immutable, try removing mutable variables in your model " "since mutable variables are currently not supported through " "this converter"; return signalPassFailure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/verify_tfxla_legalization.cc
} bool EmitMustBeConstantError(Operation* op) { if (operations_to_skip->contains(op->getRegisteredInfo()->getTypeID())) { IncrementCounterFor(mlir_non_static_op_skip_count, op); return true; } emitError(op->getLoc()) << absl::StrCat( "Node `", op->getName().getStringRef().str(), "` ", kMustBeConstantError); return false; } bool IsStaticOperation(Operation* op) { for (auto o : op->getResults()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/FakeQuantSupport.cc
Type storageType; int64_t qmin; int64_t qmax; if (getDefaultStorageParams(numBits, narrowRange, isSigned, ctx, storageType, qmin, qmax)) { return (emitError(loc, "unsupported FakeQuant number of bits: ") << numBits, nullptr); } // Special case where min/max is close enough. The tensor contents are all
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 21 11:52:27 UTC 2024 - 7.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc
std::unique_ptr<llvm::MemoryBuffer> mem_buffer; llvm::StringRef quantized_function_library = GetFunctionLibrary(quantization_method_, op_set_); if (quantized_function_library.empty()) { emitError(module.getLoc()) << "Failed to get function library for the opset."; signalPassFailure(); return; } mem_buffer = llvm::MemoryBuffer::getMemBuffer(quantized_function_library,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/guarantee_all_funcs_one_use.cc
for (llvm::scc_iterator<const CallGraph *> scci = llvm::scc_begin<const CallGraph *>(&call_graph); !scci.isAtEnd(); ++scci) { if (scci.hasCycle()) { auto err = module.emitError() << "A recursive call graph cannot be transformed to " "one use for all functions. Functions in the " "recursive cycle are: ";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/split_merged_operands.cc
// Rewire the inputs. duplicated_dq_op->setOperand(0, duplicated_input_op->getResult(0)); op->setOperand(index, duplicated_dq_op->getResult(0)); } else { op->emitError() << "We cannot duplicate the value since it's not constant.\n"; return failure(); } } return success(); } void SplitMergedOperandsPass::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc
ModuleOp module, tensorflow::Session* session) { const tensorflow::DeviceMgr* mgr = nullptr; auto status = session->LocalDeviceManager(&mgr); if (!status.ok()) { module->emitError( absl::StrCat("failed to fetch device manager: ", status.message())); return failure(); } // Fetch all VarHandleOp. llvm::StringSet<> variable_names;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/parallel_execute_util.cc
llvm::SmallVector<Operation*, 2> ops_move; for (Operation& op : block) { ops_move.push_back(&op); } if (ops_move.size() != 2) { parallel_execute.emitError() << "Expected 2 ops in parallel_execute."; return failure(); } ops_move[0]->remove(); builder->insert(ops_move[0]); parallel_execute.replaceAllUsesWith(ops_move[0]); parallel_execute.erase();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 13 03:57:18 UTC 2023 - 2.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)