mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-19 14:23:57 +08:00
21 lines
373 B
Python
21 lines
373 B
Python
from torch import optim
|
|
|
|
|
|
class Optimizer:
|
|
"""_summary_"""
|
|
|
|
def __init__(
|
|
self,
|
|
params: dict,
|
|
lr: float) -> None:
|
|
"""
|
|
Args:
|
|
params (dict): _description_
|
|
lr (float): Learning rate.
|
|
"""
|
|
self.optimizer = optim.Adam(params)
|
|
|
|
def test(self):
|
|
raise NotImplementedError
|
|
|
|
|