Uses of Class
org.tensorflow.ndarray.Shape
Packages that use Shape
Package
Description
-
Uses of Shape in org.tensorflow.ndarray
Methods in org.tensorflow.ndarray that return ShapeModifier and TypeMethodDescriptionShape.append(long lastDimension) Returns a new Shape, with a new last dimension added.Returns a new Shape, with another Shapes' dimensions appended.Shape.head()Returns a 1-dimensional Shape with first dimension matching the first dimension of this Shape.static ShapeShape.of(long... dimensionSizes) Create a Shape representing a scalar or an N-dimensional value.Shape.prepend(long firstDimension) Returns a new Shape, with a new first dimension added.Returns a new Shape, with another Shape's dimensions prepended.static ShapeShape.scalar()Creates a Shape representing a scalar value.Shaped.shape()static ShapeStdArrays.shapeOf(boolean[] array) Compute the shape of a boolean array.static ShapeStdArrays.shapeOf(boolean[][] array) Compute the shape of a 2-dimensional boolean array.static ShapeStdArrays.shapeOf(boolean[][][] array) Compute the shape of a 3-dimensional boolean array.static ShapeStdArrays.shapeOf(boolean[][][][] array) Compute the shape of a 4-dimensional boolean array.static ShapeStdArrays.shapeOf(boolean[][][][][] array) Compute the shape of a 5-dimensional boolean array.static ShapeStdArrays.shapeOf(boolean[][][][][][] array) Compute the shape of a 6-dimensional boolean array.static ShapeStdArrays.shapeOf(byte[] array) Compute the shape of a byte array.static ShapeStdArrays.shapeOf(byte[][] array) Compute the shape of a 2-dimensional byte array.static ShapeStdArrays.shapeOf(byte[][][] array) Compute the shape of a 3-dimensional byte array.static ShapeStdArrays.shapeOf(byte[][][][] array) Compute the shape of a 4-dimensional byte array.static ShapeStdArrays.shapeOf(byte[][][][][] array) Compute the shape of a 5-dimensional byte array.static ShapeStdArrays.shapeOf(byte[][][][][][] array) Compute the shape of a 6-dimensional byte array.static ShapeStdArrays.shapeOf(double[] array) Compute the shape of a double array.static ShapeStdArrays.shapeOf(double[][] array) Compute the shape of a 2-dimensional double array.static ShapeStdArrays.shapeOf(double[][][] array) Compute the shape of a 3-dimensional double array.static ShapeStdArrays.shapeOf(double[][][][] array) Compute the shape of a 4-dimensional double array.static ShapeStdArrays.shapeOf(double[][][][][] array) Compute the shape of a 5-dimensional double array.static ShapeStdArrays.shapeOf(double[][][][][][] array) Compute the shape of a 6-dimensional double array.static ShapeStdArrays.shapeOf(float[] array) Compute the shape of a float array.static ShapeStdArrays.shapeOf(float[][] array) Compute the shape of a 2-dimensional float array.static ShapeStdArrays.shapeOf(float[][][] array) Compute the shape of a 3-dimensional float array.static ShapeStdArrays.shapeOf(float[][][][] array) Compute the shape of a 4-dimensional float array.static ShapeStdArrays.shapeOf(float[][][][][] array) Compute the shape of a 5-dimensional float array.static ShapeStdArrays.shapeOf(float[][][][][][] array) Compute the shape of a 6-dimensional float array.static ShapeStdArrays.shapeOf(int[] array) Compute the shape of an int array.static ShapeStdArrays.shapeOf(int[][] array) Compute the shape of a 2-dimensional int array.static ShapeStdArrays.shapeOf(int[][][] array) Compute the shape of a 3-dimensional int array.static ShapeStdArrays.shapeOf(int[][][][] array) Compute the shape of a 4-dimensional int array.static ShapeStdArrays.shapeOf(int[][][][][] array) Compute the shape of a 5-dimensional int array.static ShapeStdArrays.shapeOf(int[][][][][][] array) Compute the shape of a 6-dimensional int array.static ShapeStdArrays.shapeOf(long[] array) Compute the shape of a long array.static ShapeStdArrays.shapeOf(long[][] array) Compute the shape of a 2-dimensional long array.static ShapeStdArrays.shapeOf(long[][][] array) Compute the shape of a 3-dimensional long array.static ShapeStdArrays.shapeOf(long[][][][] array) Compute the shape of a 4-dimensional long array.static ShapeStdArrays.shapeOf(long[][][][][] array) Compute the shape of a 5-dimensional long array.static ShapeStdArrays.shapeOf(long[][][][][][] array) Compute the shape of a 6-dimensional long array.static ShapeStdArrays.shapeOf(short[] array) Compute the shape of a short array.static ShapeStdArrays.shapeOf(short[][] array) Compute the shape of a 2-dimensional short array.static ShapeStdArrays.shapeOf(short[][][] array) Compute the shape of a 3-dimensional short array.static ShapeStdArrays.shapeOf(short[][][][] array) Compute the shape of a 4-dimensional short array.static ShapeStdArrays.shapeOf(short[][][][][] array) Compute the shape of a 5-dimensional short array.static ShapeStdArrays.shapeOf(short[][][][][][] array) Compute the shape of a 6-dimensional short array.static <T> ShapeStdArrays.shapeOf(T[] array) Compute the shape of an object array.static <T> ShapeStdArrays.shapeOf(T[][] array) Compute the shape of a 2-dimensional object array.static <T> ShapeStdArrays.shapeOf(T[][][] array) Compute the shape of a 3-dimensional object array.static <T> ShapeStdArrays.shapeOf(T[][][][] array) Compute the shape of a 4-dimensional object array.static <T> ShapeStdArrays.shapeOf(T[][][][][] array) Compute the shape of a 5-dimensional object array.static <T> ShapeStdArrays.shapeOf(T[][][][][][] array) Compute the shape of a 6-dimensional object array.Shape.subShape(int begin, int end) Return aend - begindimensional shape with dimensions matching this Shape frombegintoend.Shape.tail()Returns a new Shape, with this Shape's first dimension removed.Shape.take(int n) Returns an n-dimensional Shape with the dimensions matching the first n dimensions of this shapeShape.takeLast(int n) Returns an n-dimensional Shape with the dimensions matching the last n dimensions of this Shape.static ShapeShape.unknown()Creates a Shape representing an unknown number of dimensions.Methods in org.tensorflow.ndarray with parameters of type ShapeModifier and TypeMethodDescriptionReturns a new Shape, with another Shapes' dimensions appended.booleanShape.isCompatibleWith(Shape shape) Determines whether another shape is compatible with this one.static BooleanNdArrayNdArrays.ofBooleans(Shape shape) Creates an N-dimensional array of booleans of the given shape.static ByteNdArrayCreates an N-dimensional array of bytes of the given shape.static DoubleNdArrayCreates an N-dimensional array of doubles of the given shape.static FloatNdArrayCreates an N-dimensional array of floats of the given shape.static IntNdArrayCreates an N-dimensional array of ints of the given shape.static LongNdArrayCreates an N-dimensional array of longs of the given shape.static <T> NdArray<T> Creates an N-dimensional array of the given shape.static ShortNdArrayCreates an N-dimensional array of shorts of the given shape.Returns a new Shape, with another Shape's dimensions prepended.static BooleanSparseNdArrayNdArrays.sparseOf(LongNdArray indices, BooleanNdArray values, boolean defaultValue, Shape shape) Creates a Sparse array of boolean valuesstatic BooleanSparseNdArrayNdArrays.sparseOf(LongNdArray indices, BooleanNdArray values, Shape shape) Creates a Sparse array of boolean values with a default value of 'false'static ByteSparseNdArrayNdArrays.sparseOf(LongNdArray indices, ByteNdArray values, byte defaultValue, Shape shape) Creates a Sparse array of byte valuesstatic ByteSparseNdArrayNdArrays.sparseOf(LongNdArray indices, ByteNdArray values, Shape shape) Creates a Sparse array of byte values with a default value of zerostatic DoubleSparseNdArrayNdArrays.sparseOf(LongNdArray indices, DoubleNdArray values, double defaultValue, Shape shape) Creates a Sparse array of double valuesstatic DoubleSparseNdArrayNdArrays.sparseOf(LongNdArray indices, DoubleNdArray values, Shape shape) Creates a Sparse array of double values with a default value of zerostatic FloatSparseNdArrayNdArrays.sparseOf(LongNdArray indices, FloatNdArray values, float defaultValue, Shape shape) Creates a Sparse array of float valuesstatic FloatSparseNdArrayNdArrays.sparseOf(LongNdArray indices, FloatNdArray values, Shape shape) Creates a Sparse array of float values with a default value of zerostatic IntSparseNdArrayNdArrays.sparseOf(LongNdArray indices, IntNdArray values, int defaultValue, Shape shape) Creates a Sparse array of int valuesstatic IntSparseNdArrayNdArrays.sparseOf(LongNdArray indices, IntNdArray values, Shape shape) Creates a Sparse array of int values with a default value of zero.static LongSparseNdArrayNdArrays.sparseOf(LongNdArray indices, LongNdArray values, long defaultValue, Shape shape) Creates a Sparse array of long values with a default value of zerostatic LongSparseNdArrayNdArrays.sparseOf(LongNdArray indices, LongNdArray values, Shape shape) Creates a Sparse array of long values with a default value of zerostatic ShortSparseNdArrayNdArrays.sparseOf(LongNdArray indices, ShortNdArray values, short defaultValue, Shape shape) Creates a Sparse array of short valuesstatic ShortSparseNdArrayNdArrays.sparseOf(LongNdArray indices, ShortNdArray values, Shape shape) Creates a Sparse array of short values with a default value of zerostatic <T> NdArray<T> NdArrays.sparseOfObjects(Class<T> type, LongNdArray indices, NdArray<T> values, Shape shape) Creates a Sparse array of values with a null default valuestatic <T> NdArray<T> NdArrays.sparseOfObjects(Class<T> type, LongNdArray indices, NdArray<T> values, T defaultValue, Shape shape) Creates a Sparse array of valuesReturns a new N-dimensional view of this array with the givenshape.static BooleanNdArrayNdArrays.wrap(Shape shape, BooleanDataBuffer buffer) Wraps a buffer in a boolean N-dimensional array of a given shape.static ByteNdArrayNdArrays.wrap(Shape shape, ByteDataBuffer buffer) Wraps a buffer in a byte 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 DoubleNdArrayNdArrays.wrap(Shape shape, DoubleDataBuffer buffer) Wraps a buffer in a double N-dimensional array of a given shape.static FloatNdArrayNdArrays.wrap(Shape shape, FloatDataBuffer buffer) Wraps a buffer in a float N-dimensional array of a given shape.static IntNdArrayNdArrays.wrap(Shape shape, IntDataBuffer buffer) Wraps a buffer in an int N-dimensional array of a given shape.static LongNdArrayNdArrays.wrap(Shape shape, LongDataBuffer buffer) Wraps a buffer in a long N-dimensional array of a given shape.static ShortNdArrayNdArrays.wrap(Shape shape, ShortDataBuffer buffer) Wraps a buffer in a short N-dimensional array of a given shape. -
Uses of Shape in org.tensorflow.ndarray.impl.dense
Methods in org.tensorflow.ndarray.impl.dense with parameters of type ShapeModifier and TypeMethodDescriptionstatic BooleanNdArrayBooleanDenseNdArray.create(BooleanDataBuffer buffer, Shape shape) static ByteNdArrayByteDenseNdArray.create(ByteDataBuffer buffer, Shape shape) static DoubleNdArrayDoubleDenseNdArray.create(DoubleDataBuffer buffer, Shape shape) static FloatNdArrayFloatDenseNdArray.create(FloatDataBuffer buffer, Shape shape) static IntNdArrayIntDenseNdArray.create(IntDataBuffer buffer, Shape shape) static LongNdArrayLongDenseNdArray.create(LongDataBuffer buffer, Shape shape) static ShortNdArrayShortDenseNdArray.create(ShortDataBuffer buffer, Shape shape) static <T> NdArray<T> DenseNdArray.wrap(DataBuffer<T> buffer, Shape shape) Constructors in org.tensorflow.ndarray.impl.dense with parameters of type ShapeModifierConstructorDescriptionprotectedBooleanDenseNdArray(BooleanDataBuffer buffer, Shape shape) protectedByteDenseNdArray(ByteDataBuffer buffer, Shape shape) protectedDenseNdArray(DataBuffer<T> buffer, Shape shape) protectedDoubleDenseNdArray(DoubleDataBuffer buffer, Shape shape) protectedFloatDenseNdArray(FloatDataBuffer buffer, Shape shape) protectedIntDenseNdArray(IntDataBuffer buffer, Shape shape) protectedLongDenseNdArray(LongDataBuffer buffer, Shape shape) protectedShortDenseNdArray(ShortDataBuffer buffer, Shape shape) -
Uses of Shape in org.tensorflow.ndarray.impl.dimension
Methods in org.tensorflow.ndarray.impl.dimension that return ShapeMethods in org.tensorflow.ndarray.impl.dimension with parameters of type Shape -
Uses of Shape in org.tensorflow.ndarray.impl.sparse
Methods in org.tensorflow.ndarray.impl.sparse with parameters of type ShapeModifier and TypeMethodDescriptionstatic BooleanSparseNdArrayBooleanSparseNdArray.create(BooleanDataBuffer buffer, boolean defaultValue, Shape shape) Creates a new empty BooleanSparseNdArray from a float data bufferstatic BooleanSparseNdArrayBooleanSparseNdArray.create(BooleanDataBuffer buffer, Shape shape) Creates a new empty BooleanSparseNdArray from a float data bufferstatic ByteSparseNdArrayByteSparseNdArray.create(ByteDataBuffer buffer, byte defaultValue, Shape shape) Creates a new empty ByteSparseNdArray from a float data bufferstatic ByteSparseNdArrayByteSparseNdArray.create(ByteDataBuffer buffer, Shape shape) Creates a new empty ByteSparseNdArray from a float data bufferstatic DoubleSparseNdArrayDoubleSparseNdArray.create(DoubleDataBuffer buffer, double defaultValue, Shape shape) Creates a new empty DoubleSparseNdArray from a double data bufferstatic DoubleSparseNdArrayDoubleSparseNdArray.create(DoubleDataBuffer buffer, Shape shape) Creates a new empty DoubleSparseNdArray from a double data bufferstatic FloatSparseNdArrayFloatSparseNdArray.create(FloatDataBuffer buffer, float defaultValue, Shape shape) Creates a new empty FloatSparseNdArray from a float data bufferstatic FloatSparseNdArrayFloatSparseNdArray.create(FloatDataBuffer buffer, Shape shape) Creates a new empty FloatSparseNdArray from a float data bufferstatic IntSparseNdArrayCreates a new empty IntSparseNdArray from a data bufferstatic IntSparseNdArrayIntSparseNdArray.create(IntDataBuffer buffer, int defaultValue, Shape shape) Creates a new empty IntSparseNdArray from a int data bufferstatic IntSparseNdArrayIntSparseNdArray.create(IntDataBuffer buffer, Shape shape) Creates a new empty IntSparseNdArray from a int data bufferstatic IntSparseNdArrayCreates a new empty IntSparseNdArray from a data bufferstatic LongSparseNdArrayLongSparseNdArray.create(LongDataBuffer buffer, long defaultValue, Shape shape) Creates a new empty LongSparseNdArray from a long data bufferstatic LongSparseNdArrayLongSparseNdArray.create(LongDataBuffer buffer, Shape shape) Creates a new empty LongSparseNdArray from a long data bufferstatic ShortSparseNdArrayShortSparseNdArray.create(ShortDataBuffer buffer, short defaultValue, Shape shape) Creates a new empty ShortSparseNdArray from a short data bufferstatic ShortSparseNdArrayShortSparseNdArray.create(ShortDataBuffer buffer, Shape shape) Creates a new empty ShortSparseNdArray from a short data bufferstatic <T, U extends NdArray<T>>
SparseNdArray<T, U> SparseNdArray.create(Class<T> type, DataBuffer<T> buffer, Shape shape) Creates a new empty SparseNdArray from a float data bufferstatic <T, U extends NdArray<T>>
SparseNdArray<T, U> SparseNdArray.create(Class<T> type, DataBuffer<T> buffer, T defaultValue, Shape shape) Creates a new empty SparseNdArray from a float data bufferabstract UAbstractSparseNdArray.createValues(Shape shape) Creates a dense array of the type that this sparse array represents.BooleanSparseNdArray.createValues(Shape shape) Creates a BooleanNdArray of the specified shapeByteSparseNdArray.createValues(Shape shape) Creates a ByteNdArray of the specified shapeDoubleSparseNdArray.createValues(Shape shape) Creates a DoubleNdArray of the specified shapeFloatSparseNdArray.createValues(Shape shape) Creates a FloatNdArray of the specified shapeIntSparseNdArray.createValues(Shape shape) Creates a IntNdArray of the specified shapeLongSparseNdArray.createValues(Shape shape) Creates a LongNdArray of the specified shapeShortSparseNdArray.createValues(Shape shape) Creates a ShortNdArray of the specified shapeSparseNdArray.createValues(Shape shape) Creates a NdArray of the specified shape -
Uses of Shape in org.tensorflow.ndarray.impl.sparse.slice
Methods in org.tensorflow.ndarray.impl.sparse.slice with parameters of type ShapeModifier and TypeMethodDescriptionSparseSlice.createValues(Shape shape) Creates a dense array of the type that this sparse array represents.