@Name(value="javacpp::StreamDataset<torch::Tensor,torch::data::example::NoTarget>") @Properties(inherit=torch.class) public class JavaStreamTensorDataset extends JavaStreamTensorBatchDataset
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounteris_stateful| Constructor and Description |
|---|
JavaStreamTensorDataset()
Default native constructor.
|
JavaStreamTensorDataset(long size)
Native array allocator.
|
JavaStreamTensorDataset(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
TensorExampleVector |
get_batch(long size)
Returns a batch of data given an index.
|
JavaStreamTensorDataset |
getPointer(long i) |
JavaStreamTensorDataset |
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 JavaStreamTensorDataset()
public JavaStreamTensorDataset(long size)
Pointer.position(long).public JavaStreamTensorDataset(Pointer p)
Pointer(Pointer).public JavaStreamTensorDataset position(long position)
public JavaStreamTensorDataset getPointer(long i)
getPointer in class Pointer@Virtual(value=true) @ByVal @Const(value={false,false,true}) public SizeTOptional size()
JavaStreamTensorBatchDatasetsize in class JavaStreamTensorBatchDataset@Virtual(value=true) @ByVal public TensorExampleVector get_batch(@Cast(value="size_t") long size)
JavaStreamTensorBatchDatasetget_batch in class JavaStreamTensorBatchDatasetCopyright © 2024. All rights reserved.