@Name(value="torch::data::datasets::ChunkDataReader<torch::data::Example<torch::Tensor,torch::Tensor>,std::vector<torch::data::Example<torch::Tensor,torch::Tensor> > >") @Properties(inherit=torch.class) public class ChunkDataReader extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ChunkDataReader()
Default native constructor.
|
ChunkDataReader(long size)
Native array allocator.
|
ChunkDataReader(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
chunk_count()
Returns the number of chunks available in this reader.
|
ChunkDataReader |
getPointer(long i) |
ChunkDataReader |
position(long position) |
ExampleVector |
read_chunk(long chunk_index)
Read an entire chunk.
|
void |
reset()
This will clear any internal state associate with this reader.
|
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 ChunkDataReader()
public ChunkDataReader(long size)
Pointer.position(long)
.public ChunkDataReader(Pointer p)
Pointer(Pointer)
.public ChunkDataReader position(long position)
public ChunkDataReader getPointer(long i)
getPointer
in class Pointer
@Virtual(value=true) @ByVal @Cast(value="torch::data::datasets::ChunkDataReader<torch::data::Example<torch::Tensor,torch::Tensor>,std::vector<torch::data::Example<torch::Tensor,torch::Tensor> > >::ChunkType*") public ExampleVector read_chunk(@Cast(value="size_t") long chunk_index)
@Virtual(value=true) @Cast(value="size_t") public long chunk_count()
Copyright © 2024. All rights reserved.