- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 310 for getUsers (0.17 sec)
-
tensorflow/compiler/mlir/tensorflow/utils/topological_sort.cc
while (!todo.empty()) { Value value = todo.front(); todo.pop(); // All operations that have all their inputs available are good to go. // Uses, not Users, in case getUsers ever dedups. for (OpOperand& operand : value.getUses()) { Operation* user = ancestor[operand.getOwner()]; remaining_incoming_data_edges[user]--; if (remaining_incoming_data_edges[user] == 0 &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 08 17:01:11 UTC 2022 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/merge_control_flow.cc
// ops in first_if and the ops in second_if, it's not safe to merge // them. std::vector<Operation*> dependencies; for (auto* user : first_if.getOperation()->getUsers()) { if (!downstream_if_ops.contains(user)) { dependencies.push_back(user); } } for (auto* successor : side_effect_analysis.DirectControlSuccessors(first_if.getOperation())) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 25.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
min -= kNearZeroTolerance; max += kNearZeroTolerance; } } }; template <typename VerifierT> bool UsedBy(Operation* op) { for (Operation* user : op->getUsers()) { if (llvm::isa_and_nonnull<VerifierT>(user)) return true; } return false; } template <typename VerifierT> void CreateVerifier(Operation* quantizing_op, Operation* quantized_op,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc
value.setType(CloneTypeWithNewElementType(value.getType(), rewriter.getF32Type())); rewriter.setInsertionPointAfterValue(value); for (Operation* user : op->getUsers()) { for (int i = 0; i < user->getNumOperands(); i++) { if (user->getOperand(i) == value) { Value bf16_cast = rewriter.create<TF::CastOp>( user->getLoc(),
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/tensorflow/transforms/tpu_host_computation_expansion.cc
head_outside_compiled_ops.insert(&cluster_op); } } for (auto head_outside_compiled_op : llvm::reverse(head_outside_compiled_ops)) { auto users = head_outside_compiled_op->getUsers(); if (users.empty() || HasOutsideCompilationAttribute(head_outside_compiled_op)) continue; bool should_expand_op_to_host_computation = true; for (auto consumer_op : users) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/guarantee_all_funcs_one_use.cc
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/tensorflow/transforms/hoist_loop_invariant.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/cluster_formation.cc
for (Operation& op : region->front()) { for (Value v : op.getResults()) { // A value is live-out if any of its users are not inside value producer's // region. bool is_live_out = llvm::any_of(v.getUsers(), [&](Operation* user) { return !region->isAncestor(user->getParentRegion()); }); if (is_live_out) live_outs->emplace_back(v); } } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 05 13:30:21 UTC 2023 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/merge_fusion_with_dequantize.cc
LogicalResult matchAndRewrite(func::CallOp call_op, PatternRewriter& rewriter) const override { if (call_op.getNumResults() != 1) return failure(); auto users = call_op->getUsers(); for (auto user : users) { if (!llvm::isa<mlir::stablehlo::UniformDequantizeOp>(user)) { return failure(); } } auto func_name = call_op.getCallee();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
queue.push(root_op); while (!queue.empty()) { Operation* op = queue.front(); queue.pop(); if (llvm::isa<tf_device::ReturnOp>(op)) continue; ops_to_move.insert(op); for (Operation* user : op->getUsers()) { if (!ops_to_move.contains(user)) { queue.push(user); } } } return ops_to_move; } tf_device::LaunchOp CreateLaunchForBlock(OpBuilder* builder,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0)