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

TensorMapSize

public final class TensorMapSize

Returns the number of tensors in the input tensor map.

input_handle: the input map size: the number of tensors in the map

Public Methods

Output<Integer>
asOutput()
Returns the symbolic handle of a tensor.
static TensorMapSize
create(Scope scope, Operand<?> inputHandle)
Factory method to create a class wrapping a new TensorMapSize operation.
Output<Integer>
size()

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 TensorMapSize create (Scope scope, Operand<?> inputHandle)

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

Parameters
scope current scope
Returns
  • a new instance of TensorMapSize

public Output<Integer> size ()