- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 89 for emitError (0.14 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_quantizable_spots_as_functions.cc
// Iterate over the sorted list of functions to keep the order deterministic. for (func::FuncOp func : GetSortedFunctions(module)) { if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) { func.emitError() << "quant-lift-quantizable-spots-as-functions failed."; signalPassFailure(); } } } } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateLiftQuantizableSpotsAsFunctionsPass(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 10 04:07:09 UTC 2024 - 16.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_list_ops_decomposition.cc
if (it == buffer_to_size->end()) { return push.emitOpError( "found tf.TensorListPushBack on unknown TensorList."); } if (it->getSecond().fixed) { return push.emitError("cannot push on a fixed-size tensor list"); } auto size = it->getSecond().size; OpBuilder builder(push); auto new_buffer = cutil::SetElement(size, buffer, push.getTensor(), builder, push.getLoc());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 39.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
return WalkResult::advance(); Operation* defining = op->getOperand(0).getDefiningOp(); if (llvm::dyn_cast_or_null<TF::ConstOp>(defining)) { op->emitError("Couldn't find a program key to insert into this op."); return WalkResult::interrupt(); } return WalkResult::advance(); }); return result.wasInterrupted() ? failure() : success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_composite_functions_tf.cc
attributes.push_back({attr_item.getName(), attr_item.getValue()}); } } if (!tfl_fusable_op) return; if (failed(ConvertTflFusableOp(func, api_name, attributes))) { func->emitError(absl::StrCat("failed to fuse for op: ", api_name.str())); return signalPassFailure(); } } } void PrepareCompositeFunctionsPass::ConvertTFAPIImplements(func::FuncOp func,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc
island_op.erase(); return success(); } void ReplicateToIslandPass::runOnOperation() { const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); if (!tf_dialect) { getOperation().emitError() << "'tf' dialect is not registered"; return signalPassFailure(); } // Find islands with a single `tf_device.replicate` and create individual // islands per replica of the replicate.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jul 24 21:01:40 UTC 2023 - 16.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc
quant_specs_.inference_type = GetQuantizedInferenceType( this->quantize_signed_, this->activation_number_of_bits_); if (quant_specs_.inference_type == tensorflow::DT_INVALID) { func.emitError() << "prepare-quantize pass failed: unsupported " "inference type specification"; signalPassFailure(); return; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
if (!tflite_indices_attr) return failure(); if (op->getNumOperands() != 5) { op->emitError() << "We're expecting 5 inputs for UnidirectionalSequenceRNN, only " << op->getNumOperands() << " provided"; return failure(); } if (op->getNumResults() != 2) { op->emitError() << "We're expecting 2 inputs for UnidirectionalSequenceRNN, only "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc
params_.step_container = step_container_.get(); absl::StatusOr<int64_t> version_or = tensorflow::GetTfGraphProducerVersion( op_->getParentOfType<mlir::ModuleOp>()); if (!version_or.ok()) { return emitError(op_->getLoc()) << version_or.status().ToString(); } flib_def_ = std::make_unique<tensorflow::FunctionLibraryDefinition>( tensorflow::OpRegistry::Global(), tensorflow::FunctionDefLibrary());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:16:07 UTC 2024 - 18.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
auto q_result_type = sc_op.getType().cast<TensorType>(); auto out_qtype = q_result_type.getElementType().cast<QuantizedType>(); if (qtype != out_qtype) { avg_pool_op.emitError( "The preceding StorageCastOp and the following " "StorageCastOp must have the same quantized type"); return failure(); } // Cast to float type before the AvgPool op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc
} } void MarkOpsForOutsideCompilation::runOnOperation() { auto module = getOperation(); const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); if (!tf_dialect) { getOperation().emitError() << "'tf' dialect is not registered"; return signalPassFailure(); } RewritePatternSet patterns(&getContext()); mlir::mhlo::PopulateLegalizeTfPatterns(module.getContext(), &patterns);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.4K bytes - Viewed (0)