@Name(value="torch::data::datasets::MapDataset<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_0003aTensor_0003e_0002cstd_0003a_0003avector_0003ctorch_0003a_0003adata_0003a_0003aExample_0003ctorch_0003a_0003aTensor_0002ctorch_0003a_0003aTensor_0003e_00020_0003e_00020_0003e,torch::data::samplers::RandomSampler,torch::data::samplers::RandomSampler> >,torch::data::transforms::Stack<torch::data::Example<torch::Tensor,torch::Tensor> > >") @NoOffset @Properties(inherit=torch.class) public class ChunkMapDataset extends ChunkMapBatchDataset
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounteris_stateful| Constructor and Description |
|---|
ChunkMapDataset(ChunkSharedBatchDataset dataset,
ExampleStack transform) |
ChunkMapDataset(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ChunkSharedBatchDataset |
dataset()
Returns the underlying dataset.
|
ExampleOptional |
get_batch_example(long indices)
Gets a batch from the source dataset and applies the transform to it,
returning the result.
|
SizeTOptional |
size()
Returns the size of the source dataset.
|
ExampleStack |
transform()
Returns the transform being applied.
|
get_batch, get_batch, is_statefuladdress, 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, zeropublic ChunkMapDataset(Pointer p)
Pointer(Pointer).public ChunkMapDataset(@ByVal ChunkSharedBatchDataset dataset, @ByVal @Cast(value="torch::data::datasets::MapDataset<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_0003aTensor_0003e_0002cstd_0003a_0003avector_0003ctorch_0003a_0003adata_0003a_0003aExample_0003ctorch_0003a_0003aTensor_0002ctorch_0003a_0003aTensor_0003e_00020_0003e_00020_0003e,torch::data::samplers::RandomSampler,torch::data::samplers::RandomSampler> >,torch::data::transforms::Stack<torch::data::Example<torch::Tensor,torch::Tensor> > >::TransformType*") ExampleStack transform)
@Name(value="get_batch") @ByVal public ExampleOptional get_batch_example(@Cast(value="size_t") long indices)
@ByVal @NoException(value=true) public SizeTOptional size()
size in class ChunkMapBatchDataset@Const @ByRef @NoException(value=true) public ChunkSharedBatchDataset dataset()
@Const @ByRef @NoException(value=true) public ExampleStack transform()
Copyright © 2024. All rights reserved.