@Namespace(value="torch::nn") @NoOffset @Properties(inherit=torch.class) public class AdaptiveLogSoftmaxWithLossOptions extends Pointer
AdaptiveLogSoftmaxWithLoss
module.
Example:
AdaptiveLogSoftmaxWithLoss model(AdaptiveLogSoftmaxWithLossOptions(8, 10,
{4, 8}).div_value(2.).head_bias(true));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AdaptiveLogSoftmaxWithLossOptions(long in_features,
long n_classes,
LongVector cutoffs) |
AdaptiveLogSoftmaxWithLossOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
LongVector |
cutoffs() |
DoublePointer |
div_value() |
BoolPointer |
head_bias() |
LongPointer |
in_features() |
LongPointer |
n_classes() |
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 AdaptiveLogSoftmaxWithLossOptions(Pointer p)
Pointer(Pointer)
.@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer in_features()
@Cast(value="int64_t*") @ByRef @NoException(value=true) public LongPointer n_classes()
@Cast(value="std::vector<int64_t>*") @ByRef @NoException(value=true) public LongVector cutoffs()
@ByRef @NoException(value=true) public DoublePointer div_value()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer head_bias()
Copyright © 2024. All rights reserved.