@Name(value="javacpp::Dataset<torch::Tensor,torch::Tensor>") @Properties(inherit=torch.class) public class JavaDataset extends JavaDatasetBase
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounteris_stateful| Constructor and Description |
|---|
JavaDataset()
Default native constructor.
|
JavaDataset(long size)
Native array allocator.
|
JavaDataset(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExampleVector |
get_batch(SizeTArrayRef indices)
Returns a batch of data.
|
Example |
get(long index)
Returns the example at the given index.
|
JavaDataset |
getPointer(long i) |
JavaDataset |
position(long position) |
SizeTOptional |
size()
Returns the size of the dataset, or an empty optional if it is unsized.
|
get_batchis_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 JavaDataset()
public JavaDataset(long size)
Pointer.position(long).public JavaDataset(Pointer p)
Pointer(Pointer).public JavaDataset position(long position)
public JavaDataset getPointer(long i)
getPointer in class Pointer@Virtual(value=true) @ByVal public Example get(@Cast(value="size_t") long index)
JavaDatasetBaseget in class JavaDatasetBase@Virtual(value=true) @ByVal @Const(value={false,false,true}) public SizeTOptional size()
JavaBatchDatasetsize in class JavaBatchDataset@Virtual @ByVal public ExampleVector get_batch(@ByVal SizeTArrayRef indices)
JavaDatasetBaseget() for every requested index
in the batch.get_batch in class JavaDatasetBaseCopyright © 2024. All rights reserved.