@Namespace(value="torch::nn") @NoOffset @Properties(inherit=torch.class) public class KLDivLossOptions extends Pointer
KLDivLoss
module.
Example:
KLDivLoss
model(KLDivLossOptions().reduction(torch::kNone).log_target(false));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
KLDivLossOptions() |
KLDivLossOptions(kBatchMean reduction) |
KLDivLossOptions(kMean reduction) |
KLDivLossOptions(kNone reduction) |
KLDivLossOptions(kSum reduction) |
KLDivLossOptions(long size)
Native array allocator.
|
KLDivLossOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
KLDivLossOptions |
getPointer(long i) |
BoolPointer |
log_target() |
KLDivLossOptions |
position(long position) |
KLDivLossReduction |
reduction() |
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 KLDivLossOptions(Pointer p)
Pointer(Pointer)
.public KLDivLossOptions(long size)
Pointer.position(long)
.public KLDivLossOptions()
public KLDivLossOptions(@ByVal kBatchMean reduction)
public KLDivLossOptions position(long position)
public KLDivLossOptions getPointer(long i)
getPointer
in class Pointer
@ByRef @NoException(value=true) public KLDivLossReduction reduction()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer log_target()
Copyright © 2024. All rights reserved.