- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 26 for blockMark (0.83 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td
bool IsReplicatedBlockArgument(BlockArgument block_arg); bool IsPackedBlockArgument(BlockArgument block_arg); unsigned GetReplicaOperandIndexForBlockArgument(BlockArgument block_arg, unsigned replica); Value GetReplicaOperandForBlockArgument(BlockArgument block_arg, unsigned replica); MutableArrayRef<OpOperand> GetOperandsForBlockArgument(BlockArgument block_arg); bool WrapsSingleOp(); }];
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 23 23:53:20 UTC 2024 - 14.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc
}; // Finds op that created a given value. If the value is a BlockArgument, this // returns the owner of the Block. Operation* GetOpOfValue(Value value) { if (auto block_arg = mlir::dyn_cast<BlockArgument>(value)) return block_arg.getOwner()->getParentOp(); return value.getDefiningOp(); } void TPUAnnotateDynamicShapeInputsPass::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc
const int64_t execute_arg_index = input_and_idx.index(); if (auto block_arg = mlir::dyn_cast<BlockArgument>(input)) { // For a block argument, consider transforms only when it is a // replicated input (defining ops will be outside the replicate node). if (maybe_replicate != block_arg.getParentRegion()->getParentOp() || !HandleReplicatedInputs(execute_arg_index, execute.getKey(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/extract_tpu_copy_with_dynamic_shape_op.cc
}; // Finds op that created a given value. If the value is a BlockArgument, this // returns the owner of the Block. Operation* GetOpOfValue(Value value) { if (auto block_arg = mlir::dyn_cast<BlockArgument>(value)) return block_arg.getOwner()->getParentOp(); return value.getDefiningOp(); } // Check if the TPUCopyWithDynamicShapeOp is valid. // 1. The op should be wrapped inside a launch op.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
auto block_arg = mlir::dyn_cast<BlockArgument>(ret->getOperand(result_idx)); if (!block_arg) { return op->emitOpError("result #") << result_idx << " not tied to function argument for branch @" << func.getName(); } if (!common_arg_index.has_value()) { common_arg_index = block_arg.getArgNumber();
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/replicate_to_island.cc
island_op.getLoc(), output_types, control_type, replica_inputs); // Map block arg to replica arg. mapping.clear(); for (auto& block_arg : replicate_op.GetBody().getArguments()) mapping.map(block_arg, replicate_op.GetReplicaOperandForBlockArgument(block_arg, i)); // Copy over replicate region into replica island. replicate_op.getBody().cloneInto(&replica.getBody(), mapping);
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/cluster_tf_ops_pass.cc
// If the value is defined as an argument of the func_op, adds it to // the argument list of the function that uses this op. if (BlockArgument block_arg = mlir::dyn_cast<BlockArgument>(value)) { if (StringAttr attr = func_op.getArgAttrOfType<StringAttr>( block_arg.getArgNumber(), kTFDeviceAttr)) { value_device = attr.getValue().str(); } if (GetHost(value_device) != op_host) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 13.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/common/outline_operations.h
// These Value(s) are taken to be the arguments of the new raised func. // An operand dependency is a Value referenced anywhere in an Op // that is defined above the Op. All SSA Values are assigned/defined in a // BlockArg or as a result of an Operation. llvm::SmallVector<Value> AccumulateOperandsDefinedAbove( const llvm::SetVector<Operation*>& partition_ops); // Similar to `AccumulateOperandsDefinedAbove()`, computes the Value(s) that are
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 17 18:49:43 UTC 2022 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc
} // Finds op that created a given value. If the value is a BlockArgument, this // returns the owner of the Block. Operation* GetOpOfValue(Value value) { if (auto block_arg = mlir::dyn_cast<BlockArgument>(value)) return block_arg.getOwner()->getParentOp(); return value.getDefiningOp(); } // Checks if `op` is nested in `block`. bool OpInBlock(Operation* op, Block* block) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
replicate_op.GetBody().getArguments())) { mlir::TF::TPUReplicatedInputOp input = std::get<0>(input_and_block_arg); Value block_arg = std::get<1>(input_and_block_arg); mlir::replaceAllUsesInRegionWith(input->getResult(0), block_arg, cluster.getBody()); // Update replicated input use in tf.TPUPartitionedInputV2 op. for (auto& use : input->getUses()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0)