- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 158 for getDefiningOp (0.68 sec)
-
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc
all_reduce.getGroupSize() .getDefiningOp<TF::CollectiveAssignGroupV2Op>(); if (assign_group) { // Found a group assignment. Use replica_groups to represent group // assignment. if (assign_group != all_reduce.getGroupKey() .getDefiningOp<TF::CollectiveAssignGroupV2Op>()) { return all_reduce->emitOpError()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/utils.td
// of our files will have access to `OpHasSameStaticShapes` when including files // generated from table-gen. def OpHasSameStaticShapesPred : CPred<"OpHasSameStaticShapes($0.getDefiningOp())">; def OpHasSameStaticShapes : Constraint<OpHasSameStaticShapesPred, "op must have static same input shapes">; def OpHasNotSameStaticShapes : Constraint<Neg<OpHasSameStaticShapesPred>, "op must have not static same input shapes">;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
Operation* arg_op = arg.getDefiningOp(); return arg_op && arg_op->getName() == first_arg_op->getName(); }); if (!args_same_op) return failure(); // Collect unary operations operands. auto unary_operands = llvm::map_range(op.getValues(), [](Value arg) -> Value { return arg.getDefiningOp()->getOperand(0); });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/post_quantize.cc
LogicalResult matchAndRewrite(quantfork::DequantizeCastOp op, PatternRewriter& rewriter) const override { auto input_op = op.getArg().getDefiningOp(); if (auto q = llvm::dyn_cast_or_null<quantfork::QuantizeCastOp>(input_op)) { if (!q->getAttr(kVolatileOpAttrName)) return failure(); // If the quantize op is a requantize op, it is being used in other scale
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc
std::vector<std::vector<int>> supported_block_size; for (int operand : sparse_operands) { auto* op = sparse_op.getOperation(); auto value = op->getOperand(operand); auto* inst = value.getDefiningOp(); if (!inst) { continue; } // There could be a Dequantize op after the weight tensor in cases like // fp16 post-training quantization. We need to get the weight from the
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_island_coarsening.cc
WalkResult ready_to_schedule = op.walk([&](Operation* nested_op) { for (Value operand : nested_op->getOperands()) { Operation* defining_op = operand.getDefiningOp(); if (!defining_op) continue; Operation* producer_in_block = block->findAncestorOpInBlock(*defining_op); if (producer_in_block && producer_in_block != &op &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 27.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
} for (int i = 0; i < original_launch_op->getNumResults(); i++) { Value operand = original_launch_op.GetBody().getTerminator()->getOperand(i); auto defining_op = operand.getDefiningOp(); if (defining_op != nullptr && defining_op->getParentOp() == reduced_launch_op.getOperation()) { auto iter = reduced_return_operand_map.find(operand);
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/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/fold_broadcast.cc
for (uint64_t i = 0, e = op->getNumOperands(); i < e; ++i) { // Check that the i'th operand is a broadcast. auto broadcast = llvm::dyn_cast_or_null<TF::BroadcastToOp>( op->getOpOperand(i).get().getDefiningOp()); if (!broadcast) continue; // Check that the operand of the broadcast has fully defined shape. auto broadcast_arg_type = mlir::dyn_cast_or_null<RankedTensorType>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/partitioned_topological_sort.cc
// An operation is ready to be scheduled if all its operands are ready. An // operand is ready if: const auto is_ready = [&](Value value, Operation *top) { Operation *parent = value.getDefiningOp(); // - it is a block argument, if (parent == nullptr) return true; Operation *ancestor = block->findAncestorOpInBlock(*parent); // - it is an implicit capture,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 15:05:28 UTC 2023 - 7.2K bytes - Viewed (0)