ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

TPUOrdinalSelector

public final class TPUOrdinalSelector

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
create(Scope scope)
Factory method to create a class wrapping a new TPUOrdinalSelector operation.
Output<Integer>
deviceOrdinals()
A vector 1 or more TPU cores.

Inherited Methods

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

public Output<Integer> deviceOrdinals ()

A vector 1 or more TPU cores.