| Package | Description |
|---|---|
| org.tensorflow.ndarray | |
| org.tensorflow.ndarray.impl | |
| org.tensorflow.ndarray.impl.dense | |
| org.tensorflow.ndarray.impl.dimension |
| Modifier and Type | Method and Description |
|---|---|
Shape |
Shape.append(long lastDimension)
Returns a new Shape, with a new last dimension added.
|
Shape |
Shape.append(Shape other)
Returns a new Shape, with another Shapes' dimensions appended.
|
Shape |
Shape.head()
Returns a 1-dimensional Shape with first dimension matching the first dimension of this Shape.
|
static Shape |
Shape.of(long... dimensionSizes)
Create a Shape representing a scalar or an N-dimensional value.
|
Shape |
Shape.prepend(long firstDimension)
Returns a new Shape, with a new first dimension added.
|
Shape |
Shape.prepend(Shape other)
Returns a new Shape, with another Shape's dimensions prepended.
|
static Shape |
Shape.scalar()
Creates a Shape representing a scalar value.
|
Shape |
NdArray.shape() |
static Shape |
StdArrays.shapeOf(boolean[] array)
Compute the shape of a boolean array.
|
static Shape |
StdArrays.shapeOf(boolean[][] array)
Compute the shape of a 2-dimensional boolean array.
|
static Shape |
StdArrays.shapeOf(boolean[][][] array)
Compute the shape of a 3-dimensional boolean array.
|
static Shape |
StdArrays.shapeOf(boolean[][][][] array)
Compute the shape of a 4-dimensional boolean array.
|
static Shape |
StdArrays.shapeOf(boolean[][][][][] array)
Compute the shape of a 5-dimensional boolean array.
|
static Shape |
StdArrays.shapeOf(boolean[][][][][][] array)
Compute the shape of a 6-dimensional boolean array.
|
static Shape |
StdArrays.shapeOf(byte[] array)
Compute the shape of a byte array.
|
static Shape |
StdArrays.shapeOf(byte[][] array)
Compute the shape of a 2-dimensional byte array.
|
static Shape |
StdArrays.shapeOf(byte[][][] array)
Compute the shape of a 3-dimensional byte array.
|
static Shape |
StdArrays.shapeOf(byte[][][][] array)
Compute the shape of a 4-dimensional byte array.
|
static Shape |
StdArrays.shapeOf(byte[][][][][] array)
Compute the shape of a 5-dimensional byte array.
|
static Shape |
StdArrays.shapeOf(byte[][][][][][] array)
Compute the shape of a 6-dimensional byte array.
|
static Shape |
StdArrays.shapeOf(double[] array)
Compute the shape of a double array.
|
static Shape |
StdArrays.shapeOf(double[][] array)
Compute the shape of a 2-dimensional double array.
|
static Shape |
StdArrays.shapeOf(double[][][] array)
Compute the shape of a 3-dimensional double array.
|
static Shape |
StdArrays.shapeOf(double[][][][] array)
Compute the shape of a 4-dimensional double array.
|
static Shape |
StdArrays.shapeOf(double[][][][][] array)
Compute the shape of a 5-dimensional double array.
|
static Shape |
StdArrays.shapeOf(double[][][][][][] array)
Compute the shape of a 6-dimensional double array.
|
static Shape |
StdArrays.shapeOf(float[] array)
Compute the shape of a float array.
|
static Shape |
StdArrays.shapeOf(float[][] array)
Compute the shape of a 2-dimensional float array.
|
static Shape |
StdArrays.shapeOf(float[][][] array)
Compute the shape of a 3-dimensional float array.
|
static Shape |
StdArrays.shapeOf(float[][][][] array)
Compute the shape of a 4-dimensional float array.
|
static Shape |
StdArrays.shapeOf(float[][][][][] array)
Compute the shape of a 5-dimensional float array.
|
static Shape |
StdArrays.shapeOf(float[][][][][][] array)
Compute the shape of a 6-dimensional float array.
|
static Shape |
StdArrays.shapeOf(int[] array)
Compute the shape of an int array.
|
static Shape |
StdArrays.shapeOf(int[][] array)
Compute the shape of a 2-dimensional int array.
|
static Shape |
StdArrays.shapeOf(int[][][] array)
Compute the shape of a 3-dimensional int array.
|
static Shape |
StdArrays.shapeOf(int[][][][] array)
Compute the shape of a 4-dimensional int array.
|
static Shape |
StdArrays.shapeOf(int[][][][][] array)
Compute the shape of a 5-dimensional int array.
|
static Shape |
StdArrays.shapeOf(int[][][][][][] array)
Compute the shape of a 6-dimensional int array.
|
static Shape |
StdArrays.shapeOf(long[] array)
Compute the shape of a long array.
|
static Shape |
StdArrays.shapeOf(long[][] array)
Compute the shape of a 2-dimensional long array.
|
static Shape |
StdArrays.shapeOf(long[][][] array)
Compute the shape of a 3-dimensional long array.
|
static Shape |
StdArrays.shapeOf(long[][][][] array)
Compute the shape of a 4-dimensional long array.
|
static Shape |
StdArrays.shapeOf(long[][][][][] array)
Compute the shape of a 5-dimensional long array.
|
static Shape |
StdArrays.shapeOf(long[][][][][][] array)
Compute the shape of a 6-dimensional long array.
|
static Shape |
StdArrays.shapeOf(short[] array)
Compute the shape of a short array.
|
static Shape |
StdArrays.shapeOf(short[][] array)
Compute the shape of a 2-dimensional short array.
|
static Shape |
StdArrays.shapeOf(short[][][] array)
Compute the shape of a 3-dimensional short array.
|
static Shape |
StdArrays.shapeOf(short[][][][] array)
Compute the shape of a 4-dimensional short array.
|
static Shape |
StdArrays.shapeOf(short[][][][][] array)
Compute the shape of a 5-dimensional short array.
|
static Shape |
StdArrays.shapeOf(short[][][][][][] array)
Compute the shape of a 6-dimensional short array.
|
static <T> Shape |
StdArrays.shapeOf(T[] array)
Compute the shape of an object array.
|
static <T> Shape |
StdArrays.shapeOf(T[][] array)
Compute the shape of a 2-dimensional object array.
|
static <T> Shape |
StdArrays.shapeOf(T[][][] array)
Compute the shape of a 3-dimensional object array.
|
static <T> Shape |
StdArrays.shapeOf(T[][][][] array)
Compute the shape of a 4-dimensional object array.
|
static <T> Shape |
StdArrays.shapeOf(T[][][][][] array)
Compute the shape of a 5-dimensional object array.
|
static <T> Shape |
StdArrays.shapeOf(T[][][][][][] array)
Compute the shape of a 6-dimensional object array.
|
Shape |
Shape.tail()
Returns a new Shape, with this Shape's first dimension removed.
|
Shape |
Shape.take(int n)
Returns an n-dimensional Shape with the dimensions matching the first n dimensions
of this shape
|
Shape |
Shape.takeLast(int n)
Returns an n-dimensional Shape with the dimensions matching the last n dimensions
of this Shape.
|
static Shape |
Shape.unknown()
Creates a Shape representing an unknown number of dimensions.
|
| Modifier and Type | Method and Description |
|---|---|
Shape |
Shape.append(Shape other)
Returns a new Shape, with another Shapes' dimensions appended.
|
static BooleanNdArray |
NdArrays.ofBooleans(Shape shape)
Creates an N-dimensional array of booleans of the given shape.
|
static ByteNdArray |
NdArrays.ofBytes(Shape shape)
Creates an N-dimensional array of bytes of the given shape.
|
static DoubleNdArray |
NdArrays.ofDoubles(Shape shape)
Creates an N-dimensional array of doubles of the given shape.
|
static FloatNdArray |
NdArrays.ofFloats(Shape shape)
Creates an N-dimensional array of floats of the given shape.
|
static IntNdArray |
NdArrays.ofInts(Shape shape)
Creates an N-dimensional array of ints of the given shape.
|
static LongNdArray |
NdArrays.ofLongs(Shape shape)
Creates an N-dimensional array of longs of the given shape.
|
static <T> NdArray<T> |
NdArrays.ofObjects(Class<T> clazz,
Shape shape)
Creates an N-dimensional array of the given shape.
|
static ShortNdArray |
NdArrays.ofShorts(Shape shape)
Creates an N-dimensional array of shorts of the given shape.
|
Shape |
Shape.prepend(Shape other)
Returns a new Shape, with another Shape's dimensions prepended.
|
static ByteNdArray |
NdArrays.wrap(ByteDataBuffer buffer,
Shape shape)
Wraps a buffer in a byte N-dimensional array of a given shape.
|
static BooleanNdArray |
NdArrays.wrap(Shape shape,
BooleanDataBuffer buffer)
Wraps a buffer in a boolean N-dimensional array of a given shape.
|
static <T> NdArray<T> |
NdArrays.wrap(Shape shape,
DataBuffer<T> buffer)
Wraps a buffer in an N-dimensional array of a given shape.
|
static DoubleNdArray |
NdArrays.wrap(Shape shape,
DoubleDataBuffer buffer)
Wraps a buffer in a double N-dimensional array of a given shape.
|
static FloatNdArray |
NdArrays.wrap(Shape shape,
FloatDataBuffer buffer)
Wraps a buffer in a float N-dimensional array of a given shape.
|
static IntNdArray |
NdArrays.wrap(Shape shape,
IntDataBuffer buffer)
Wraps a buffer in an int N-dimensional array of a given shape.
|
static LongNdArray |
NdArrays.wrap(Shape shape,
LongDataBuffer buffer)
Wraps a buffer in a long N-dimensional array of a given shape.
|
static ShortNdArray |
NdArrays.wrap(Shape shape,
ShortDataBuffer buffer)
Wraps a buffer in a short N-dimensional array of a given shape.
|
| Modifier and Type | Method and Description |
|---|---|
Shape |
AbstractNdArray.shape() |
| Modifier and Type | Method and Description |
|---|---|
static BooleanNdArray |
BooleanDenseNdArray.create(BooleanDataBuffer buffer,
Shape shape) |
static ByteNdArray |
ByteDenseNdArray.create(ByteDataBuffer buffer,
Shape shape) |
static DoubleNdArray |
DoubleDenseNdArray.create(DoubleDataBuffer buffer,
Shape shape) |
static FloatNdArray |
FloatDenseNdArray.create(FloatDataBuffer buffer,
Shape shape) |
static IntNdArray |
IntDenseNdArray.create(IntDataBuffer buffer,
Shape shape) |
static LongNdArray |
LongDenseNdArray.create(LongDataBuffer buffer,
Shape shape) |
static ShortNdArray |
ShortDenseNdArray.create(ShortDataBuffer buffer,
Shape shape) |
static <T> NdArray<T> |
DenseNdArray.wrap(DataBuffer<T> buffer,
Shape shape) |
| Constructor and Description |
|---|
BooleanDenseNdArray(BooleanDataBuffer buffer,
Shape shape) |
ByteDenseNdArray(ByteDataBuffer buffer,
Shape shape) |
DenseNdArray(DataBuffer<T> buffer,
Shape shape) |
DoubleDenseNdArray(DoubleDataBuffer buffer,
Shape shape) |
FloatDenseNdArray(FloatDataBuffer buffer,
Shape shape) |
IntDenseNdArray(IntDataBuffer buffer,
Shape shape) |
LongDenseNdArray(LongDataBuffer buffer,
Shape shape) |
ShortDenseNdArray(ShortDataBuffer buffer,
Shape shape) |
| Modifier and Type | Method and Description |
|---|---|
Shape |
DimensionalSpace.shape() |
| Modifier and Type | Method and Description |
|---|---|
static DimensionalSpace |
DimensionalSpace.create(Shape shape) |
Copyright © 2015–2020. All rights reserved.