A TPU core selector Op.
This Op produces a set of TPU cores (for warm-up) or a single TPU core (for regular inference) to execute the TPU program on. The output is consumed by TPUPartitionedCall.
Public Methods
Output<Integer> |
asOutput()
Returns the symbolic handle of a tensor.
|
static TPUOrdinalSelector | |
Output<Integer> |
deviceOrdinals()
A vector 1 or more TPU cores.
|
Inherited Methods
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()
|
Public Methods
public Output<Integer> asOutput ()
Returns the symbolic handle of a tensor.
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
public static TPUOrdinalSelector create (Scope scope)
Factory method to create a class wrapping a new TPUOrdinalSelector operation.
Parameters
scope | current scope |
---|
Returns
- a new instance of TPUOrdinalSelector