ShapeN

public final class ShapeN

Returns shape of tensors.

This operation returns N 1-D integer tensors representing shape of `input[i]s`.

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static <T extends TType> ShapeN<TInt32>
create(Scope scope, Iterable<Operand<T>> input)
Factory method to create a class wrapping a new ShapeN operation using default output types.
static <U extends TNumber, T extends TType> ShapeN<U>
create(Scope scope, Iterable<Operand<T>> input, Class<U> outType)
Factory method to create a class wrapping a new ShapeN operation.
Iterator<Operand<U>>
List<Output<U>>
output()

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<U extends TNumber>>
iterator()
abstract Spliterator<Operand<U extends TNumber>>
spliterator()

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "ShapeN"

Public Methods

public static ShapeN<TInt32> create (Scope scope, Iterable<Operand<T>> input)

Factory method to create a class wrapping a new ShapeN operation using default output types.

Parameters
scope current scope
Returns
  • a new instance of ShapeN

public static ShapeN<U> create (Scope scope, Iterable<Operand<T>> input, Class<U> outType)

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

Parameters
scope current scope
Returns
  • a new instance of ShapeN

public Iterator<Operand<U>> iterator ()

public List<Output<U>> output ()