TPUReplicatedOutput

public final class TPUReplicatedOutput

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.

Public Methods

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

Inherited Methods

Public Methods

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

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

Parameters
scope current scope
Returns
  • a new instance of TPUReplicatedOutput

public Iterator< Operand <T>> iterator ()

public List< Output <T>> outputs ()