Uses of Class
org.tensorflow.ndarray.Shape
-
Packages that use Shape Package Description org.tensorflow.ndarray org.tensorflow.ndarray.impl.dense org.tensorflow.ndarray.impl.dimension org.tensorflow.ndarray.impl.sparse org.tensorflow.ndarray.impl.sparse.slice -
-
Uses of Shape in org.tensorflow.ndarray
Methods in org.tensorflow.ndarray that return Shape Modifier and Type Method Description ShapeShape. append(long lastDimension)Returns a new Shape, with a new last dimension added.ShapeShape. append(Shape other)Returns a new Shape, with another Shapes' dimensions appended.ShapeShape. 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.ShapeShape. prepend(long firstDimension)Returns a new Shape, with a new first dimension added.ShapeShape. prepend(Shape other)Returns a new Shape, with another Shape's dimensions prepended.static ShapeShape. scalar()Creates a Shape representing a scalar value.ShapeShaped. 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.ShapeShape. subShape(int begin, int end)Return aend - begindimensional shape with dimensions matching this Shape frombegintoend.ShapeShape. tail()Returns a new Shape, with this Shape's first dimension removed.ShapeShape. take(int n)Returns an n-dimensional Shape with the dimensions matching the first n dimensions of this shapeShapeShape. 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 Shape Modifier and Type Method Description ShapeShape. append(Shape other)Returns 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 ByteNdArrayNdArrays. ofBytes(Shape shape)Creates an N-dimensional array of bytes of the given shape.static DoubleNdArrayNdArrays. ofDoubles(Shape shape)Creates an N-dimensional array of doubles of the given shape.static FloatNdArrayNdArrays. ofFloats(Shape shape)Creates an N-dimensional array of floats of the given shape.static IntNdArrayNdArrays. ofInts(Shape shape)Creates an N-dimensional array of ints of the given shape.static LongNdArrayNdArrays. 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 ShortNdArrayNdArrays. ofShorts(Shape shape)Creates an N-dimensional array of shorts of the given shape.ShapeShape. prepend(Shape other)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 valuesstatic 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 Shape Modifier and Type Method Description static 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 Shape Constructor 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) -
Uses of Shape in org.tensorflow.ndarray.impl.dimension
Methods in org.tensorflow.ndarray.impl.dimension that return Shape Modifier and Type Method Description ShapeDimensionalSpace. shape()Methods in org.tensorflow.ndarray.impl.dimension with parameters of type Shape Modifier and Type Method Description static DimensionalSpaceDimensionalSpace. create(Shape shape) -
Uses of Shape in org.tensorflow.ndarray.impl.sparse
Methods in org.tensorflow.ndarray.impl.sparse with parameters of type Shape Modifier and Type Method Description static 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 IntSparseNdArrayIntSparseNdArray. create(int defaultValue, Shape shape)Creates 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 IntSparseNdArrayIntSparseNdArray. create(Shape shape)Creates 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.BooleanNdArrayBooleanSparseNdArray. createValues(Shape shape)Creates a BooleanNdArray of the specified shapeByteNdArrayByteSparseNdArray. createValues(Shape shape)Creates a ByteNdArray of the specified shapeDoubleNdArrayDoubleSparseNdArray. createValues(Shape shape)Creates a DoubleNdArray of the specified shapeFloatNdArrayFloatSparseNdArray. createValues(Shape shape)Creates a FloatNdArray of the specified shapeIntNdArrayIntSparseNdArray. createValues(Shape shape)Creates a IntNdArray of the specified shapeLongNdArrayLongSparseNdArray. createValues(Shape shape)Creates a LongNdArray of the specified shapeShortNdArrayShortSparseNdArray. createValues(Shape shape)Creates a ShortNdArray of the specified shapeUSparseNdArray. 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 Shape Modifier and Type Method Description USparseSlice. createValues(Shape shape)Creates a dense array of the type that this sparse array represents.
-