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