public static class TFTensorMappers.Float32TensorMapper extends TFTensorMappers.BaseTensorMapper<float[],FloatBuffer>
TFTensorMapper.ValueSource
tfTensor
Constructor and Description |
---|
Float32TensorMapper(TensorProto tensorProto) |
Modifier and Type | Method and Description |
---|---|
INDArray |
arrayFor(long[] shape,
float[] jArr) |
FloatBuffer |
getBuffer(ByteBuffer bb) |
void |
getValue(float[] jArr,
FloatBuffer buffer,
int i) |
void |
getValue(float[] jArr,
int i) |
float[] |
newArray(int length) |
int |
valueCount() |
dataType, isEmpty, shape, toNDArray, valueSource
public Float32TensorMapper(TensorProto tensorProto)
public int valueCount()
public float[] newArray(int length)
public FloatBuffer getBuffer(ByteBuffer bb)
public void getValue(float[] jArr, int i)
public void getValue(float[] jArr, FloatBuffer buffer, int i)
public INDArray arrayFor(long[] shape, float[] jArr)
Copyright © 2021. All rights reserved.