- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for GetReplicaOperandForBlockArgument (0.38 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/replicate_invariant_op_hoisting.cc
// associated first replica operand. if (auto block_arg = mlir::dyn_cast<BlockArgument>(input)) { if (block_arg.getOwner() != replicate_block) return; shape_op.setOperand(replicate_op.GetReplicaOperandForBlockArgument( block_arg, /*replica=*/0)); return; } Operation* input_def = input.getDefiningOp(); // If ShapeOp operand is a ReadVariableOp result where the ReadVariableOp
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/host_runtime/tpu_variable_runtime_reformatting.cc
replicated_inputs.back().push_back( replicate.GetReplicaOperandForBlockArgument(arg, i)); } new_replicated_inputs.emplace_back(replicated_inputs.back(), arg.getType()); } for (const auto& arg : replicate.GetPackedBlockArguments()) { new_packed_inputs.emplace_back( replicate.GetReplicaOperandForBlockArgument(arg, /*replica=*/0)); } SmallVector<Value, 4> new_input_values;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td
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(); }]; let builders = [
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/replicate_to_island.cc
// 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/ir/tf_device.cc
// Returns the operand being forwarded as a replicated/packed block argument for // a given replica. This assumes a valid block argument (of the replicate op) // and a valid replica is provided. Value ReplicateOp::GetReplicaOperandForBlockArgument(BlockArgument block_arg, unsigned replica) { MutableArrayRef<OpOperand> operands = GetOperandsForBlockArgument(block_arg);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.4K bytes - Viewed (0)