ReplicatedOutput

public final class ReplicatedOutput

Connects N outputs from an N-way replicated TPU computation.

This operation holds a replicated output from a `tpu.replicate()` computation subgraph. Each replicated output has the same shape and type alongside the input.

For example:

%computation = "tf.Computation"()
 %replicated_output:2 = "tf.TPUReplicatedOutput"(%computation)
 
The above computation has a replicated output of two replicas.

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static <T extends TType> ReplicatedOutput<T>
create(Scope scope, Operand<T> input, Long numReplicas)
Factory method to create a class wrapping a new ReplicatedOutput operation.
Iterator<Operand<T>>
List<Output<T>>

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "TPUReplicatedOutput"

Public Methods

public static ReplicatedOutput<T> create (Scope scope, Operand<T> input, Long numReplicas)

Factory method to create a class wrapping a new ReplicatedOutput operation.

Parameters
scope current scope
Returns
  • a new instance of ReplicatedOutput

public Iterator<Operand<T>> iterator ()

public List<Output<T>> outputs ()