@Namespace(value="torch::nn::functional") @Properties(inherit=torch.class) public class InterpolateFuncOptions extends Pointer
torch::nn::functional::interpolate
.
Example:
namespace F = torch::nn::functional;
F::interpolate(input,
F::InterpolateFuncOptions().size(std::vector<int64_t>({4})).mode(torch::kNearest));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
InterpolateFuncOptions()
Default native constructor.
|
InterpolateFuncOptions(long size)
Native array allocator.
|
InterpolateFuncOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BoolOptional |
align_corners() |
BoolPointer |
antialias() |
InterpolateFuncOptions |
getPointer(long i) |
InterpolateMode |
mode() |
InterpolateFuncOptions |
position(long position) |
BoolOptional |
recompute_scale_factor() |
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, zero
public InterpolateFuncOptions()
public InterpolateFuncOptions(long size)
Pointer.position(long)
.public InterpolateFuncOptions(Pointer p)
Pointer(Pointer)
.public InterpolateFuncOptions position(long position)
public InterpolateFuncOptions 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 InterpolateMode mode()
@ByRef @NoException(value=true) public BoolOptional align_corners()
@ByRef @NoException(value=true) public BoolOptional recompute_scale_factor()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer antialias()
Copyright © 2024. All rights reserved.