@Name(value="javacpp::StreamDataset<torch::Tensor,torch::Tensor>") @Properties(inherit=torch.class) public class JavaStreamDataset extends JavaStreamBatchDataset
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounteris_stateful| Constructor and Description |
|---|
JavaStreamDataset()
Default native constructor.
|
JavaStreamDataset(long size)
Native array allocator.
|
JavaStreamDataset(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExampleVector |
get_batch(long size)
Returns a batch of data given an index.
|
JavaStreamDataset |
getPointer(long i) |
JavaStreamDataset |
position(long position) |
SizeTOptional |
size()
Returns the size of the dataset, or an empty optional if it is unsized.
|
is_statefuladdress, 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, zeropublic JavaStreamDataset()
public JavaStreamDataset(long size)
Pointer.position(long).public JavaStreamDataset(Pointer p)
Pointer(Pointer).public JavaStreamDataset position(long position)
public JavaStreamDataset getPointer(long i)
getPointer in class Pointer@Virtual(value=true) @ByVal @Const(value={false,false,true}) public SizeTOptional size()
JavaStreamBatchDatasetsize in class JavaStreamBatchDataset@Virtual(value=true) @ByVal public ExampleVector get_batch(@Cast(value="size_t") long size)
JavaStreamBatchDatasetget_batch in class JavaStreamBatchDatasetCopyright © 2024. All rights reserved.