@Namespace(value="torch::data::datasets") @NoOffset @Properties(inherit=torch.class) public class TensorDataset extends TensorDatasetBase
get()
.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
is_stateful
Constructor and Description |
---|
TensorDataset(Pointer p)
Pointer cast constructor.
|
TensorDataset(Tensor tensor) |
TensorDataset(TensorVector tensors)
Creates a
TensorDataset from a vector of tensors. |
Modifier and Type | Method and Description |
---|---|
Example |
get(long index)
Returns a single
TensorExample . |
SizeTOptional |
size()
Returns the number of tensors in the dataset.
|
Tensor |
tensor() |
TensorDataset |
tensor(Tensor setter) |
get_batch, get_batch
is_stateful
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 TensorDataset(Pointer p)
Pointer(Pointer)
.public TensorDataset(@Const @ByRef TensorVector tensors)
TensorDataset
from a vector of tensors.@ByVal @Cast(value="torch::data::TensorExample*") public Example get(@Cast(value="size_t") long index)
TensorExample
.get
in class TensorDatasetBase
@ByVal public SizeTOptional size()
size
in class TensorBatchDataset
public TensorDataset tensor(Tensor setter)
Copyright © 2024. All rights reserved.