@Name(value="javacpp::StatefulDataset<torch::Tensor,torch::data::example::NoTarget>") @Properties(inherit=torch.class) public class JavaStatefulTensorDataset extends JavaStatefulTensorDatasetBase
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounteris_stateful| Constructor and Description |
|---|
JavaStatefulTensorDataset()
Default native constructor.
|
JavaStatefulTensorDataset(long size)
Native array allocator.
|
JavaStatefulTensorDataset(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TensorExampleVectorOptional |
get_batch(long size)
Returns a batch of data given an index.
|
JavaStatefulTensorDataset |
getPointer(long i) |
void |
load(InputArchive archive)
Deserializes the statefulDataset's state from the
archive. |
JavaStatefulTensorDataset |
position(long position) |
void |
reset()
Resets internal state of the dataset.
|
void |
save(OutputArchive archive)
Saves the statefulDataset's state to OutputArchive.
|
SizeTOptional |
size()
Returns the size of the dataset, or an empty optional if it is unsized.
|
is_statefuladdress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic JavaStatefulTensorDataset()
public JavaStatefulTensorDataset(long size)
Pointer.position(long).public JavaStatefulTensorDataset(Pointer p)
Pointer(Pointer).public JavaStatefulTensorDataset position(long position)
public JavaStatefulTensorDataset getPointer(long i)
getPointer in class Pointer@Virtual(value=true) @ByVal @Const(value={false,false,true}) public SizeTOptional size()
JavaStatefulTensorBatchDatasetsize in class JavaStatefulTensorBatchDataset@Virtual(value=true) @ByVal public TensorExampleVectorOptional get_batch(@Cast(value="size_t") long size)
JavaStatefulTensorBatchDatasetget_batch in class JavaStatefulTensorBatchDataset@Virtual(value=true) public void reset()
JavaStatefulTensorDatasetBasereset in class JavaStatefulTensorDatasetBase@Virtual(value=true) @Const(value={false,false,true}) public void save(@ByRef OutputArchive archive)
JavaStatefulTensorDatasetBasesave in class JavaStatefulTensorDatasetBase@Virtual(value=true) public void load(@ByRef InputArchive archive)
JavaStatefulTensorDatasetBasearchive.load in class JavaStatefulTensorDatasetBaseCopyright © 2024. All rights reserved.