@Namespace(value="torch::nn") @Properties(inherit=torch.class) public class UpsampleOptions extends Pointer
Upsample module.
Example:
Upsample
model(UpsampleOptions().scale_factor(std::vector<double>({3})).mode(torch::kLinear).align_corners(false));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
UpsampleOptions()
Default native constructor.
|
UpsampleOptions(long size)
Native array allocator.
|
UpsampleOptions(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BoolOptional |
align_corners() |
UpsampleOptions |
getPointer(long i) |
UpsampleMode |
mode() |
UpsampleOptions |
position(long position) |
DoubleVectorOptional |
scale_factor() |
LongVectorOptional |
size() |
address, 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 UpsampleOptions()
public UpsampleOptions(long size)
Pointer.position(long).public UpsampleOptions(Pointer p)
Pointer(Pointer).public UpsampleOptions position(long position)
public UpsampleOptions getPointer(long i)
getPointer in class Pointer@ByRef @NoException(value=true) public LongVectorOptional size()
@ByRef @NoException(value=true) public DoubleVectorOptional scale_factor()
@ByRef @NoException(value=true) public UpsampleMode mode()
@ByRef @NoException(value=true) public BoolOptional align_corners()
Copyright © 2024. All rights reserved.