@Namespace(value="torch::data") @NoOffset @Properties(inherit=torch.class) public class FullDataLoaderOptions extends Pointer
DataLoaderOptions
, but without any unconfigured state.
DataLoaderOptions
has some options that depend on other options
(max_jobs
=> 2 * workers
). In the spirit of properly using the C++ type
system, DataLoaderOptions
allows only setting values. To access values,
you must create a FullDataLoaderOptions
from a DataLoaderOptions
instance, which will do any necessary coalescing.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
FullDataLoaderOptions(DataLoaderOptions options) |
FullDataLoaderOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
batch_size() |
FullDataLoaderOptions |
batch_size(long setter) |
boolean |
drop_last() |
FullDataLoaderOptions |
drop_last(boolean setter) |
boolean |
enforce_ordering() |
FullDataLoaderOptions |
enforce_ordering(boolean setter) |
long |
max_jobs() |
FullDataLoaderOptions |
max_jobs(long setter) |
Pointer |
timeout() |
FullDataLoaderOptions |
timeout(Pointer setter) |
long |
workers() |
FullDataLoaderOptions |
workers(long setter) |
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 FullDataLoaderOptions(Pointer p)
Pointer(Pointer)
.public FullDataLoaderOptions(@ByVal DataLoaderOptions options)
public FullDataLoaderOptions batch_size(long setter)
public FullDataLoaderOptions workers(long setter)
public FullDataLoaderOptions max_jobs(long setter)
public FullDataLoaderOptions timeout(Pointer setter)
public FullDataLoaderOptions enforce_ordering(boolean setter)
public FullDataLoaderOptions drop_last(boolean setter)
Copyright © 2024. All rights reserved.