Available Methods
- newShapeNoCopy ( )
- hasDefaultStridesForShape ( )
- assertValidOrder ( )
- shapeEquals ( )
- ind2sub ( )
- areShapesBroadcastable ( )
- normalizeAxis ( )
- ind2subC ( )
- elementWiseStride ( )
- getBroadcastDimensions ( )
- getOffset ( )
- shapeToStringShort ( )
- rankFromShape ( )
- wholeArrayDimension ( )
- toOffsetZeroCopy ( )
- getReducedShape ( )
- createShapeInformation ( )
- pickPairwiseDataType ( )
- isColumnVectorShape ( )
- rank ( )
- shapeOf ( )
- stride ( )
- shapeInfoLength ( )
- offset ( )
- isRowVectorShape ( )
- getOrder ( )
- options ( )
- strideDescendingCAscendingF ( )
- isVector ( )
- toOffsetZero ( )
- toOffsetZeroCopyAnyOrder ( )
- order ( )
- assertBroadcastable ( )
Related Classes
- java.util.Arrays
- java.util.Collections
- java.nio.ByteBuffer
- java.util.concurrent.atomic.AtomicBoolean
- java.nio.channels.FileChannel
- java.nio.ByteOrder
- com.google.common.base.Function
- org.apache.commons.lang3.ArrayUtils
- org.apache.commons.math3.linear.RealMatrix
- org.nd4j.linalg.api.ndarray.INDArray
- org.nd4j.linalg.factory.Nd4j
- org.deeplearning4j.nn.conf.NeuralNetConfiguration
- org.deeplearning4j.nn.conf.layers.DenseLayer
- org.bytedeco.javacpp.BytePointer
- org.nd4j.linalg.ops.transforms.Transforms
- org.bytedeco.javacpp.Pointer
- org.nd4j.linalg.indexing.NDArrayIndex
- org.nd4j.linalg.indexing.INDArrayIndex
- org.nd4j.linalg.primitives.Pair
- org.nd4j.linalg.api.buffer.DataBuffer
- org.nd4j.linalg.indexing.conditions.Conditions
- org.deeplearning4j.nn.api.Layer
- org.deeplearning4j.nn.gradient.Gradient
- org.nd4j.linalg.api.memory.MemoryWorkspace
- org.deeplearning4j.nn.workspace.LayerWorkspaceMgr
Java Code Examples for org.nd4j.linalg.api.shape.Shape#options()
The following examples show how to use
org.nd4j.linalg.api.shape.Shape#options() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ArrayOptionsHelper.java From deeplearning4j with Apache License 2.0 | 5 votes |
public static ArrayType arrayType(long[] shapeInfo) { val opt = Shape.options(shapeInfo); if (hasBitSet(opt, ATYPE_SPARSE_BIT)) return ArrayType.SPARSE; else if (hasBitSet(opt, ATYPE_COMPRESSED_BIT)) return ArrayType.COMPRESSED; else if (hasBitSet(opt, ATYPE_EMPTY_BIT)) return ArrayType.EMPTY; else return ArrayType.DENSE; }
Example 2
Source File: ArrayOptionsHelper.java From deeplearning4j with Apache License 2.0 | 4 votes |
public static boolean hasBitSet(long[] shapeInfo, long bit) { val opt = Shape.options(shapeInfo); return hasBitSet(opt, bit); }
Example 3
Source File: ArrayOptionsHelper.java From deeplearning4j with Apache License 2.0 | 4 votes |
public static DataType dataType(long[] shapeInfo) { val opt = Shape.options(shapeInfo); return dataType(opt); }