@Name(value="javacpp::StatefulDataset<torch::Tensor,torch::Tensor>") @Properties(inherit=torch.class) public class JavaStatefulDataset extends JavaStatefulDatasetBase
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
is_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_stateful
address, 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, zero
public 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()
JavaStatefulBatchDataset
size
in class JavaStatefulBatchDataset
@Virtual(value=true) @ByVal public ExampleVectorOptional get_batch(@Cast(value="size_t") long size)
JavaStatefulBatchDataset
get_batch
in class JavaStatefulBatchDataset
@Virtual(value=true) public void reset()
JavaStatefulDatasetBase
reset
in class JavaStatefulDatasetBase
@Virtual(value=true) @Const(value={false,false,true}) public void save(@ByRef OutputArchive archive)
JavaStatefulDatasetBase
save
in class JavaStatefulDatasetBase
@Virtual(value=true) public void load(@ByRef InputArchive archive)
JavaStatefulDatasetBase
archive
.load
in class JavaStatefulDatasetBase
Copyright © 2024. All rights reserved.