public abstract static class tensorflow.AbstractTensor extends Pointer implements Indexable
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
AbstractTensor(Pointer p) |
| Modifier and Type | Method and Description |
|---|---|
static tensorflow.Tensor |
create(byte[] data,
tensorflow.TensorShape shape) |
static tensorflow.Tensor |
create(double[] data,
tensorflow.TensorShape shape) |
static tensorflow.Tensor |
create(float[] data,
tensorflow.TensorShape shape) |
static tensorflow.Tensor |
create(int[] data,
tensorflow.TensorShape shape) |
static tensorflow.Tensor |
create(long[] data,
tensorflow.TensorShape shape) |
static tensorflow.Tensor |
create(short[] data,
tensorflow.TensorShape shape) |
static tensorflow.Tensor |
create(String[] data,
tensorflow.TensorShape shape) |
<B extends Buffer> |
createBuffer()
Returns
createBuffer(0). |
<B extends Buffer> |
createBuffer(long index)
Returns
tensor_data() wrapped in a Buffer of appropriate type starting at given index. |
<I extends Indexer> |
createIndexer()
Returns
createIndexer(true). |
<I extends Indexer> |
createIndexer(boolean direct) |
tensorflow.StringArray |
createStringArray()
Returns
new StringArray(tensor_data()).capacity(NumElements()).limit(NumElements()) when dtype() == DT_STRING. |
abstract long |
dim_size(int d) |
abstract int |
dims() |
abstract int |
dtype() |
abstract long |
NumElements() |
abstract BytePointer |
tensor_data() |
abstract long |
TotalBytes() |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic AbstractTensor(Pointer p)
public static tensorflow.Tensor create(float[] data, tensorflow.TensorShape shape)
public static tensorflow.Tensor create(double[] data, tensorflow.TensorShape shape)
public static tensorflow.Tensor create(int[] data, tensorflow.TensorShape shape)
public static tensorflow.Tensor create(short[] data, tensorflow.TensorShape shape)
public static tensorflow.Tensor create(byte[] data, tensorflow.TensorShape shape)
public static tensorflow.Tensor create(long[] data, tensorflow.TensorShape shape)
public static tensorflow.Tensor create(String[] data, tensorflow.TensorShape shape)
public abstract int dtype()
public abstract int dims()
public abstract long dim_size(int d)
public abstract long NumElements()
public abstract long TotalBytes()
public abstract BytePointer tensor_data()
public <B extends Buffer> B createBuffer()
createBuffer(0).public <B extends Buffer> B createBuffer(long index)
tensor_data() wrapped in a Buffer of appropriate type starting at given index.public <I extends Indexer> I createIndexer()
createIndexer(true).public <I extends Indexer> I createIndexer(boolean direct)
createIndexer in interface Indexablepublic tensorflow.StringArray createStringArray()
new StringArray(tensor_data()).capacity(NumElements()).limit(NumElements()) when dtype() == DT_STRING.Copyright © 2019. All rights reserved.