@Name(value="torch::data::datasets::StatefulDataset<javacpp::StatefulDataset<torch::Tensor,torch::data::example::NoTarget>,std::vector<torch::data::Example<torch::Tensor,torch::data::example::NoTarget> >,size_t>") @Properties(inherit=torch.class) public class JavaStatefulTensorDatasetBase extends JavaStatefulTensorBatchDataset
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
is_stateful
Constructor and Description |
---|
JavaStatefulTensorDatasetBase(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
load(InputArchive archive)
Deserializes the statefulDataset's state from the
archive . |
void |
reset()
Resets internal state of the dataset.
|
void |
save(OutputArchive archive)
Saves the statefulDataset's state to OutputArchive.
|
get_batch, is_stateful, size
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public JavaStatefulTensorDatasetBase(Pointer p)
Pointer(Pointer)
.public void reset()
public void save(@ByRef OutputArchive archive)
public void load(@ByRef InputArchive archive)
archive
.Copyright © 2024. All rights reserved.