mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-04 06:49:13 +08:00
fixed most linting errors
This commit is contained in:
1 parent
a7167f890e
commit
5691d00d42
14 files changed
+110
-45
No files matched your search
@@ -1,21 +1,26 @@
|
||||
"""
|
||||
Optimizer class.
|
||||
"""
|
||||
|
||||
from torch import optim
|
||||
|
||||
|
||||
class Optimizer:
|
||||
"""_summary_"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
params: dict,
|
||||
lr: float) -> None:
|
||||
def __init__(self, params: dict, lr: float):
|
||||
"""
|
||||
Args:
|
||||
params (dict): _description_
|
||||
lr (float): Learning rate.
|
||||
"""
|
||||
self.optimizer = optim.Adam(params)
|
||||
self.lr = lr
|
||||
|
||||
def test(self):
|
||||
raise NotImplementedError
|
||||
"""_summary_
|
||||
|
||||
|
||||
Raises:
|
||||
NotImplementedError: _description_
|
||||
"""
|
||||
raise NotImplementedError
|
||||
Reference in new issue
Block a user