public abstract static class TFTensorMappers.BaseTensorMapper<T,U extends Buffer> extends Object implements TFTensorMapper<T,U>
TFTensorMapper.ValueSource
Modifier and Type | Field and Description |
---|---|
protected TensorProto |
tfTensor |
Constructor and Description |
---|
BaseTensorMapper(TensorProto tensorProto) |
Modifier and Type | Method and Description |
---|---|
DataType |
dataType() |
boolean |
isEmpty() |
long[] |
shape() |
INDArray |
toNDArray() |
TFTensorMapper.ValueSource |
valueSource() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
arrayFor, getBuffer, getValue, getValue, newArray, valueCount
protected TensorProto tfTensor
public BaseTensorMapper(TensorProto tensorProto)
public DataType dataType()
dataType
in interface TFTensorMapper<T,U extends Buffer>
public long[] shape()
shape
in interface TFTensorMapper<T,U extends Buffer>
public boolean isEmpty()
isEmpty
in interface TFTensorMapper<T,U extends Buffer>
public TFTensorMapper.ValueSource valueSource()
valueSource
in interface TFTensorMapper<T,U extends Buffer>
Copyright © 2020. All rights reserved.