- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 218 for getOperands (0.18 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc
// `operand_idx`. return op.getNumOperands() + operand_idx; } return operand_idx; } // Returns the pointers to operands at `operand_indices` of `op`. llvm::SmallVector<OpOperand*> GetOperands(Operation& op, llvm::ArrayRef<int> operand_indices) { llvm::SmallVector<OpOperand*> operands{}; for (const int operand_idx : operand_indices) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 17.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc
if (*this_partition == op_partition && !unscheduled_op .walk([&](Operation *op) { return llvm::all_of(op->getOperands(), [&](Value operand) { return is_ready(operand, &unscheduled_op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 15:05:28 UTC 2023 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc
llvm::SmallDenseMap<Value, Value> rewritten_operands; auto new_results = GetValueWithToken(builder, llvm::to_vector(terminator->getOperands()), token, rewritten_operands, flatten_tuple); terminator->setOperands(new_results); } // Rewrites a `mhlo.if` op to receive and forward a `mhlo.token`. As If op does
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 40.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/util.h
if (!return_op) return failure(); if (return_op.getNumOperands() != 1) return failure(); ReductionOp reduce_op = dyn_cast_or_null<ReductionOp>( return_op.getOperands().front().getDefiningOp()); if (!reduce_op) return failure(); if (reduce_op.getLhs() != body.getArgument(0) || reduce_op.getRhs() != body.getArgument(1)) return failure(); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 08 11:35:25 UTC 2023 - 6.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/graph_pruning.cc
void VisitOpOperands(GraphOp graph, Operation* op, llvm::SmallPtrSetImpl<Operation*>* reachable_ops, llvm::SmallVectorImpl<Operation*>* ops_to_visit) { for (Value operand : op->getOperands()) VisitOpOperand(graph, operand, reachable_ops, ops_to_visit); } // Visits an op and it's associated operands. IslandOps are handled differently
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc
template <typename OpT> void DeferRhsTransposeForBinaryOp(OpT op, PatternRewriter& rewriter) { auto transpose_op = cast<TransposeOp>(op.getOperand(0).getDefiningOp()); Value lhs_pre_transpose = transpose_op.getOperand(); // NCHW -> NHWC for the right-hand side, to match the operand's shape. Value rhs = op.getOperand(1); TransposeOp rhs_transpose_op = CreateTransposeOp( /*input=*/rhs, kNchwToNhwcPermutation, rewriter);
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/tensorflow/transforms/sparsecore/embedding_pipelining.cc
func::ReturnOp return_op = *callee.getOps<func::ReturnOp>().begin(); auto val = return_op.getOperand(i); auto block_arg_number = ComesFromBlockArgNumber(val); if (block_arg_number >= 0) { replaceAllUsesInRegionWith(call_op->getResult(i), call_op->getOperand(block_arg_number), func.getRegion()); } } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 92.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc
bool IsOpReplicateInvariant(Region* replicate_region, Operation* op) { auto ancestor_of_replicate = [&](Region* region) { return region && region->isProperAncestor(replicate_region); }; for (Value operand : op->getOperands()) if (!ancestor_of_replicate(operand.getParentRegion())) return false; // _TPUDeviceOrdinalPlaceholder implicitly depends on the replica. if (llvm::isa<TF::_TPUDeviceOrdinalPlaceholderOp>(op)) return false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc
// Replace replicate terminator with YieldOp. builder.setInsertionPoint(&terminator); builder.create<tf_executor::YieldOp>(terminator.getLoc(), terminator.getOperands()); terminator.erase(); builder.setInsertionPoint(island_op); IRMapping mapping; for (int i : llvm::seq<int>(0, num_replicas)) { // Create new island for replica.
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/tensorflow/transforms/executor_island_coarsening.cc
DCHECK_EQ(def->getParentOp(), graph); try_update_current_candidate(def); } // Check island data operands. island.walk([&](Operation* op) { for (Value input : op->getOperands()) { Operation* def = input.getDefiningOp(); if (!def || def->getParentOp() != graph) continue; try_update_current_candidate(def); } }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0)