@Name(value="javacpp::StatefulDataset<torch::Tensor,torch::Tensor>") @Properties(inherit=torch.class) public class JavaStatefulDataset extends JavaStatefulDatasetBase
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounteris_stateful| Constructor and Description |
|---|
JavaStatefulDataset()
Default native constructor.
|
JavaStatefulDataset(long size)
Native array allocator.
|
JavaStatefulDataset(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExampleVectorOptional |
get_batch(long size)
Returns a batch of data given an index.
|
JavaStatefulDataset |
getPointer(long i) |
void |
load(InputArchive archive)
Deserializes the statefulDataset's state from the
archive. |
JavaStatefulDataset |
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 JavaStatefulDataset()
public JavaStatefulDataset(long size)
Pointer.position(long).public JavaStatefulDataset(Pointer p)
Pointer(Pointer).public JavaStatefulDataset position(long position)
public JavaStatefulDataset getPointer(long i)
getPointer in class Pointer@Virtual(value=true) @ByVal @Const(value={false,false,true}) public SizeTOptional size()
JavaStatefulBatchDatasetsize in class JavaStatefulBatchDataset@Virtual(value=true) @ByVal public ExampleVectorOptional get_batch(@Cast(value="size_t") long size)
JavaStatefulBatchDatasetget_batch in class JavaStatefulBatchDataset@Virtual(value=true) public void reset()
JavaStatefulDatasetBasereset in class JavaStatefulDatasetBase@Virtual(value=true) @Const(value={false,false,true}) public void save(@ByRef OutputArchive archive)
JavaStatefulDatasetBasesave in class JavaStatefulDatasetBase@Virtual(value=true) public void load(@ByRef InputArchive archive)
JavaStatefulDatasetBasearchive.load in class JavaStatefulDatasetBaseCopyright © 2024. All rights reserved.