TensorPlay
API symbolsoptim
Copy
View MarkdownDownload .md

SGD

class tensorplay.optim.sgd.SGD(params: Iterable[TensorBase] | Iterable[dict[str, Any]] | Iterable[tuple[str, TensorBase]], lr: float | TensorBase = 0.001, momentum: float = 0, dampening: float = 0, weight_decay: float | TensorBase = 0, nesterov: bool = False, *, maximize: bool = False, foreach: bool | None = None, differentiable: bool = False, fused: bool | None = None)[source]
Ask DeepWiki