- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 38 for getOperandNumber (0.43 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc
Value value = op.getResult(); // Check whether dynamic range quantization can be applied. for (auto& use : value.getUses()) { Operation* user = use.getOwner(); int operand_num = use.getOperandNumber(); std::unique_ptr<OpQuantSpec> spec = GetTFOpQuantSpec(user); if (quant_specs_.inference_type == tensorflow::DT_QINT8 && spec->quantizable_operands.contains(operand_num)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc
} quantizable_values.push_back(input.get()); aggregator_ids.push_back( (llvm::Twine(composite_function_name.value()) + "_arg_" + llvm::Twine(input.getOperandNumber()) + "_calibration_method_" + llvm::Twine(calib_opts_.calibration_method())) .str()); } } else { // Quantize output of fully quantizable composite functions.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
for (auto& use : input->getUses()) { auto pi = llvm::dyn_cast<mlir::TF::TPUPartitionedInputV2Op>(use.getOwner()); if (pi) { pi.setOperand(use.getOperandNumber(), block_arg); partitioned_inputs.insert(pi.getOperation()); } } } // Create terminator for replicate op and move `tf_device.cluster` and
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
Value value = op.getResult(); // Check whether dynamic range quantization can be applied. for (auto& use : value.getUses()) { Operation* user = use.getOwner(); int operand_num = use.getOperandNumber(); // TODO(b/212514817): refactor mode checking to improve code quality if (quant_specs_.inference_type == tensorflow::DT_QINT8 && hasInt8QuantizableOperandAt(user, operand_num)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
!HasSingleOpInBlock<YieldOp>(&op.GetBody())) return failure(); for (auto &use : llvm::make_early_inc_range(op.getControl().getUses())) use.getOwner()->eraseOperand(use.getOperandNumber()); rewriter.eraseOp(op); return success(); } }; // This pattern matches and removes IslandOps with no inner ops, no control
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
// is unused in cond and the only use in body is use it as a return value. if (cond_arg.use_empty() && body_arg.hasOneUse() && body_arg.use_begin()->getOperandNumber() == result_idx && body_arg.use_begin()->getOwner() == body_ret) { can_eliminate.set(result_idx); } } if (can_eliminate.empty()) return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/stack_ops_decomposition.cc
getElementTypeOrSelf(operand.get().getType()))) { return op.emitOpError() << "found unexpected type " << operand.get().getType() << " of operand #" << operand.getOperandNumber() << ", resource type operands are expected to have been " "canonicalized away for region based control flow ops"; } } for (OpResult result : op.getResults()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 23.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc
if (is_func && isa<func::ReturnOp>(user)) { assert(!info.IsResultIndexAssigned() && "Expect resource argument to returned no more than once"); info.result_index = use.getOperandNumber(); continue; } auto read = dyn_cast<TF::ReadVariableOp>(user); auto write = dyn_cast<TF::AssignVariableOp>(user); if (!read && !write) { unsupported_use = true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 55.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.cc
for (OpOperand &operand : value.getUses()) operand.getOwner()->emitRemark( llvm::formatv("operand #{0} constrained to: {1}", operand.getOperandNumber(), constraint)); }); } void EmitInputsConstraintsRemarks(func::FuncOp func, const ValuesConstraintSet &constraints) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 27.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc
for (OpOperand& operand : return_op->getOpOperands()) { if (non_tpu_args.contains(operand.getOperandNumber())) { if (BlockArgument argument = llvm::dyn_cast<BlockArgument>(operand.get())) { if (argument.getArgNumber() != operand.getOperandNumber()) { return_op.emitOpError() << "non TPU ops do not divide state into two pieces.";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0)