IteratorGetDevice

public final class IteratorGetDevice

Returns the name of the device on which `resource` has been placed.

Public Methods

Output<String>
asOutput()
Returns the symbolic handle of a tensor.
static IteratorGetDevice
create(Scope scope, Operand<?> resource)
Factory method to create a class wrapping a new IteratorGetDevice operation.
Output<String>
device()

Inherited Methods

Public Methods

public Output<String> 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 IteratorGetDevice create (Scope scope, Operand<?> resource)

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

Parameters
scope current scope
Returns
  • a new instance of IteratorGetDevice

public Output<String> device ()