@Name(value="torch::data::datasets::SharedBatchDataset<torch::data::datasets::ChunkDataset<JavaCPP_torch_0003a_0003adata_0003a_0003adatasets_0003a_0003aChunkDataReader_0003ctorch_0003a_0003adata_0003a_0003aExample_0003ctorch_0003a_0003aTensor_0002ctorch_0003a_0003adata_0003a_0003aexample_0003a_0003aNoTarget_0003e_0002cstd_0003a_0003avector_0003ctorch_0003a_0003adata_0003a_0003aExample_0003ctorch_0003a_0003aTensor_0002ctorch_0003a_0003adata_0003a_0003aexample_0003a_0003aNoTarget_0003e_00020_0003e_00020_0003e,torch::data::samplers::RandomSampler,torch::data::samplers::RandomSampler> >") @NoOffset @Properties(inherit=torch.class) public class ChunkSharedTensorBatchDataset extends ChunkBatchSharedTensorBatchDataset
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
is_stateful
Constructor and Description |
---|
ChunkSharedTensorBatchDataset(ChunkTensorDataset shared_dataset)
Constructs a new
SharedBatchDataset from a shared_ptr to the
UnderlyingDataset . |
ChunkSharedTensorBatchDataset(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
ChunkTensorDataset |
access()
Accesses the underlying dataset.
|
TensorExampleVectorOptional |
get_batch(long request)
Calls
get_batch on the underlying dataset. |
ChunkTensorDataset |
multiply()
Accesses the underlying dataset.
|
void |
reset()
Calls
reset() on the underlying dataset. |
SizeTOptional |
size()
Returns the
size from the underlying dataset. |
is_stateful, map
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 ChunkSharedTensorBatchDataset(Pointer p)
Pointer(Pointer)
.public ChunkSharedTensorBatchDataset(@SharedPtr ChunkTensorDataset shared_dataset)
SharedBatchDataset
from a shared_ptr
to the
UnderlyingDataset
.@ByVal @Cast(value="torch::data::datasets::SharedBatchDataset<torch::data::datasets::ChunkDataset<JavaCPP_torch_0003a_0003adata_0003a_0003adatasets_0003a_0003aChunkDataReader_0003ctorch_0003a_0003adata_0003a_0003aExample_0003ctorch_0003a_0003aTensor_0002ctorch_0003a_0003adata_0003a_0003aexample_0003a_0003aNoTarget_0003e_0002cstd_0003a_0003avector_0003ctorch_0003a_0003adata_0003a_0003aExample_0003ctorch_0003a_0003aTensor_0002ctorch_0003a_0003adata_0003a_0003aexample_0003a_0003aNoTarget_0003e_00020_0003e_00020_0003e,torch::data::samplers::RandomSampler,torch::data::samplers::RandomSampler> >::BatchType*") public TensorExampleVectorOptional get_batch(@Cast(value="torch::data::datasets::SharedBatchDataset<torch::data::datasets::ChunkDataset<JavaCPP_torch_0003a_0003adata_0003a_0003adatasets_0003a_0003aChunkDataReader_0003ctorch_0003a_0003adata_0003a_0003aExample_0003ctorch_0003a_0003aTensor_0002ctorch_0003a_0003adata_0003a_0003aexample_0003a_0003aNoTarget_0003e_0002cstd_0003a_0003avector_0003ctorch_0003a_0003adata_0003a_0003aExample_0003ctorch_0003a_0003aTensor_0002ctorch_0003a_0003adata_0003a_0003aexample_0003a_0003aNoTarget_0003e_00020_0003e_00020_0003e,torch::data::samplers::RandomSampler,torch::data::samplers::RandomSampler> >::BatchRequestType") long request)
get_batch
on the underlying dataset.get_batch
in class ChunkBatchSharedTensorBatchDataset
@ByVal public SizeTOptional size()
size
from the underlying dataset.size
in class ChunkBatchSharedTensorBatchDataset
@ByRef @Name(value="operator *") public ChunkTensorDataset multiply()
@Name(value="operator ->") public ChunkTensorDataset access()
public void reset()
reset()
on the underlying dataset.Copyright © 2024. All rights reserved.