@Name(value="torch::data::datasets::BatchDataset<torch::data::datasets::MNIST,std::vector<torch::data::Example<torch::Tensor,torch::Tensor> >,at::ArrayRef<size_t> >") @Properties(inherit=torch.class) public class MNISTBatchDataset extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static boolean |
is_stateful |
Constructor and Description |
---|
MNISTBatchDataset(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
ExampleVector |
get_batch(long... request) |
ExampleVector |
get_batch(SizeTArrayRef request)
Returns a batch of data given an index.
|
static boolean |
is_stateful() |
MNISTMapDataset |
map(ExampleStack transform)
Creates a
MapDataset that applies the given transform to this dataset. |
SizeTOptional |
size()
Returns the size of the dataset, or an empty std::optional if it is
unsized.
|
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 MNISTBatchDataset(Pointer p)
Pointer(Pointer)
.@MemberGetter @Cast(value="const bool") public static boolean is_stateful()
@ByVal public ExampleVector get_batch(@ByVal SizeTArrayRef request)
@ByVal public ExampleVector get_batch(@ByVal @Cast(value={"size_t*","c10::ArrayRef<size_t>","std::vector<size_t>&"}) @StdVector(value="size_t") long... request)
@ByVal public SizeTOptional size()
@ByVal public MNISTMapDataset map(@ByVal ExampleStack transform)
MapDataset
that applies the given transform
to this dataset.Copyright © 2024. All rights reserved.