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

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single Operation.
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.
abstract void
forEach(Consumer<? super T> arg0)
abstract Iterator<Operand<T>>
iterator()
abstract Spliterator<Operand<T>>
spliterator()

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 ()