@Namespace(value="torch::optim") @NoOffset @Properties(inherit=torch.class) public class AdamWOptions extends OptimizerCloneableAdamWOptions
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AdamWOptions() |
AdamWOptions(double lr) |
AdamWOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
BoolPointer |
amsgrad() |
DoublePointer |
betas() |
DoublePointer |
eps() |
boolean |
equals(AdamWOptions rhs) |
double |
get_lr() |
DoublePointer |
lr() |
void |
set_lr(double lr) |
DoublePointer |
weight_decay() |
getPointer, position
clone
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 AdamWOptions(Pointer p)
Pointer(Pointer)
.public AdamWOptions(double lr)
public AdamWOptions()
@ByRef @NoException(value=true) public DoublePointer lr()
@Cast(value="std::tuple<double,double>*") @ByRef @NoException public DoublePointer betas()
@ByRef @NoException(value=true) public DoublePointer eps()
@ByRef @NoException(value=true) public DoublePointer weight_decay()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer amsgrad()
public boolean equals(AdamWOptions rhs)
public double get_lr()
get_lr
in class OptimizerOptions
public void set_lr(double lr)
set_lr
in class OptimizerOptions
Copyright © 2024. All rights reserved.