@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_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> >,torch::data::transforms::Stack<torch::data::Example<torch::Tensor,torch::data::example::NoTarget> > >") @NoOffset @Properties(inherit=torch.class) public class ChunkMapTensorDataset extends ChunkMapTensorBatchDataset
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
is_stateful
Constructor and Description |
---|
ChunkMapTensorDataset(ChunkSharedTensorBatchDataset dataset,
TensorExampleStack transform) |
ChunkMapTensorDataset(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
ChunkSharedTensorBatchDataset |
dataset()
Returns the underlying dataset.
|
TensorExampleOptional |
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.
|
TensorExampleStack |
transform()
Returns the transform being applied.
|
get_batch, get_batch, is_stateful
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 ChunkMapTensorDataset(Pointer p)
Pointer(Pointer)
.public ChunkMapTensorDataset(@ByVal ChunkSharedTensorBatchDataset 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_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> >,torch::data::transforms::Stack<torch::data::Example<torch::Tensor,torch::data::example::NoTarget> > >::TransformType*") TensorExampleStack transform)
@Name(value="get_batch") @ByVal public TensorExampleOptional get_batch_example(@Cast(value="size_t") long indices)
@ByVal @NoException(value=true) public SizeTOptional size()
size
in class ChunkMapTensorBatchDataset
@Const @ByRef @NoException(value=true) public ChunkSharedTensorBatchDataset dataset()
@Const @ByRef @NoException(value=true) public TensorExampleStack transform()
Copyright © 2024. All rights reserved.