@Namespace(value="torch::optim") @NoOffset @Properties(inherit=torch.class) public class AdamOptions extends OptimizerCloneableAdamOptions
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
AdamOptions() |
AdamOptions(double lr) |
AdamOptions(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
BoolPointer |
amsgrad() |
DoublePointer |
betas() |
DoublePointer |
eps() |
boolean |
equals(AdamOptions rhs) |
double |
get_lr() |
DoublePointer |
lr() |
void |
set_lr(double lr) |
DoublePointer |
weight_decay() |
getPointer, positioncloneaddress, 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, zeropublic AdamOptions(Pointer p)
Pointer(Pointer).public AdamOptions(double lr)
public AdamOptions()
@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(AdamOptions rhs)
public double get_lr()
get_lr in class OptimizerOptionspublic void set_lr(double lr)
set_lr in class OptimizerOptionsCopyright © 2024. All rights reserved.