@Namespace(value="torch::optim") @NoOffset @Properties(inherit=torch.class) public class SGDOptions extends OptimizerCloneableSGDOptions
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SGDOptions(double lr) |
SGDOptions(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
DoublePointer |
dampening() |
boolean |
equals(SGDOptions rhs) |
double |
get_lr() |
DoublePointer |
lr() |
DoublePointer |
momentum() |
BoolPointer |
nesterov() |
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 SGDOptions(Pointer p)
Pointer(Pointer)
.public SGDOptions(double lr)
@ByRef @NoException(value=true) public DoublePointer lr()
@ByRef @NoException(value=true) public DoublePointer momentum()
@ByRef @NoException(value=true) public DoublePointer dampening()
@ByRef @NoException(value=true) public DoublePointer weight_decay()
@Cast(value="bool*") @ByRef @NoException(value=true) public BoolPointer nesterov()
public boolean equals(SGDOptions 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.