@Namespace(value="torch::nn") @NoOffset @Properties(inherit=torch.class) public class HuberLossOptions extends Pointer
HuberLoss
module.
Example:
HuberLoss model(HuberLossOptions().reduction(torch::kNone).delta(0.5));
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
HuberLossOptions() |
HuberLossOptions(kMean reduction) |
HuberLossOptions(kNone reduction) |
HuberLossOptions(kSum reduction) |
HuberLossOptions(long size)
Native array allocator.
|
HuberLossOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
DoublePointer |
delta() |
HuberLossOptions |
getPointer(long i) |
HuberLossOptions |
position(long position) |
LossReduction |
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 HuberLossOptions(Pointer p)
Pointer(Pointer)
.public HuberLossOptions(long size)
Pointer.position(long)
.public HuberLossOptions()
public HuberLossOptions position(long position)
public HuberLossOptions getPointer(long i)
getPointer
in class Pointer
@ByRef @NoException(value=true) public LossReduction reduction()
@ByRef @NoException(value=true) public DoublePointer delta()
Copyright © 2024. All rights reserved.