@Namespace(value="torch::nn::functional") @NoOffset @Properties(inherit=torch.class) public class PadFuncOptions extends Pointer
torch::nn::functional::pad
.
Example:
namespace F = torch::nn::functional;
F::pad(input, F::PadFuncOptions({1, 2, 2, 1, 1,
2}).mode(torch::kReplicate));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
PadFuncOptions(LongVector pad) |
PadFuncOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
PaddingMode |
mode() |
LongVector |
pad() |
DoublePointer |
value() |
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 PadFuncOptions(Pointer p)
Pointer(Pointer)
.public PadFuncOptions(@ByVal @Cast(value="std::vector<int64_t>*") LongVector pad)
@Cast(value="std::vector<int64_t>*") @ByRef @NoException(value=true) public LongVector pad()
@ByRef @NoException(value=true) public PaddingMode mode()
@ByRef @NoException(value=true) public DoublePointer value()
Copyright © 2024. All rights reserved.