@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.ReferenceCounter
is_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_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 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()
JavaStatefulTensorBatchDataset
size
in class JavaStatefulTensorBatchDataset
@Virtual(value=true) @ByVal public TensorExampleVectorOptional get_batch(@Cast(value="size_t") long size)
JavaStatefulTensorBatchDataset
get_batch
in class JavaStatefulTensorBatchDataset
@Virtual(value=true) public void reset()
JavaStatefulTensorDatasetBase
reset
in class JavaStatefulTensorDatasetBase
@Virtual(value=true) @Const(value={false,false,true}) public void save(@ByRef OutputArchive archive)
JavaStatefulTensorDatasetBase
save
in class JavaStatefulTensorDatasetBase
@Virtual(value=true) public void load(@ByRef InputArchive archive)
JavaStatefulTensorDatasetBase
archive
.load
in class JavaStatefulTensorDatasetBase
Copyright © 2024. All rights reserved.