@Namespace(value="torch::optim") @Properties(inherit=torch.class) public class AdamW extends Optimizer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter| Constructor and Description |
|---|
AdamW(OptimizerParamGroupVector param_groups) |
AdamW(OptimizerParamGroupVector param_groups,
AdamWOptions defaults) |
AdamW(Pointer p)
Pointer cast constructor.
|
AdamW(TensorVector params) |
AdamW(TensorVector params,
AdamWOptions defaults) |
| Modifier and Type | Method and Description |
|---|---|
void |
load(InputArchive archive)
Deserializes the optimizer state from the given
archive. |
void |
save(OutputArchive archive)
Serializes the optimizer state into the given
archive. |
Tensor |
step() |
Tensor |
step(LossClosure closure)
A loss function closure, which is expected to return the loss value.
|
add_param_group, add_parameters, defaults, param_groups, parameters, put, size, zero_grad, zero_gradaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zeropublic AdamW(Pointer p)
Pointer(Pointer).public AdamW(@Const @ByRef OptimizerParamGroupVector param_groups, @ByVal(nullValue="torch::optim::AdamWOptions{}") AdamWOptions defaults)
public AdamW(@Const @ByRef OptimizerParamGroupVector param_groups)
public AdamW(@ByVal TensorVector params, @ByVal(nullValue="torch::optim::AdamWOptions{}") AdamWOptions defaults)
public AdamW(@ByVal TensorVector params)
@ByVal public Tensor step(@ByVal(nullValue="torch::optim::Optimizer::LossClosure(nullptr)") LossClosure closure)
Optimizerpublic void save(@ByRef OutputArchive archive)
Optimizerarchive.public void load(@ByRef InputArchive archive)
Optimizerarchive.Copyright © 2025. All rights reserved.