Class TFTensorMappers.Int16TensorMapper
- java.lang.Object
-
- org.nd4j.imports.graphmapper.tf.tensors.TFTensorMappers.BaseTensorMapper<int[],ShortBuffer>
-
- org.nd4j.imports.graphmapper.tf.tensors.TFTensorMappers.Int16TensorMapper
-
- All Implemented Interfaces:
TFTensorMapper<int[],ShortBuffer>
- Enclosing class:
- TFTensorMappers
public static class TFTensorMappers.Int16TensorMapper extends TFTensorMappers.BaseTensorMapper<int[],ShortBuffer>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.nd4j.imports.graphmapper.tf.tensors.TFTensorMapper
TFTensorMapper.ValueSource
-
-
Field Summary
-
Fields inherited from class org.nd4j.imports.graphmapper.tf.tensors.TFTensorMappers.BaseTensorMapper
tfTensor
-
-
Constructor Summary
Constructors Constructor Description Int16TensorMapper(TensorProto tensorProto)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description INDArray
arrayFor(long[] shape, int[] jArr)
ShortBuffer
getBuffer(ByteBuffer bb)
void
getValue(int[] jArr, int i)
void
getValue(int[] jArr, ShortBuffer buffer, int i)
int[]
newArray(int length)
int
valueCount()
-
Methods inherited from class org.nd4j.imports.graphmapper.tf.tensors.TFTensorMappers.BaseTensorMapper
dataType, isEmpty, shape, toNDArray, valueSource
-
-
-
-
Constructor Detail
-
Int16TensorMapper
public Int16TensorMapper(TensorProto tensorProto)
-
-
Method Detail
-
valueCount
public int valueCount()
-
newArray
public int[] newArray(int length)
-
getBuffer
public ShortBuffer getBuffer(ByteBuffer bb)
-
getValue
public void getValue(int[] jArr, int i)
-
getValue
public void getValue(int[] jArr, ShortBuffer buffer, int i)
-
arrayFor
public INDArray arrayFor(long[] shape, int[] jArr)
-
-