@Namespace(value="torch::nn::functional") @Properties(inherit=torch.class) public class GumbelSoftmaxFuncOptions extends Pointer
torch::nn::functional::gumbel_softmax
.
Example:
namespace F = torch::nn::functional;
F::gumbel_softmax(logits, F::GumbelSoftmaxFuncOptions().hard(true).dim(-1));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
GumbelSoftmaxFuncOptions()
Default native constructor.
|
GumbelSoftmaxFuncOptions(long size)
Native array allocator.
|
GumbelSoftmaxFuncOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
IntPointer |
dim() |
GumbelSoftmaxFuncOptions |
getPointer(long i) |
BoolPointer |
hard() |
GumbelSoftmaxFuncOptions |
position(long position) |
DoublePointer |
tau() |
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 GumbelSoftmaxFuncOptions()
public GumbelSoftmaxFuncOptions(long size)
Pointer.position(long)
.public GumbelSoftmaxFuncOptions(Pointer p)
Pointer(Pointer)
.public GumbelSoftmaxFuncOptions position(long position)
public GumbelSoftmaxFuncOptions getPointer(long i)
getPointer
in class Pointer
@ByRef @NoException(value=true) public DoublePointer tau()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer hard()
@ByRef @NoException(value=true) public IntPointer dim()
Copyright © 2024. All rights reserved.