mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-03 22:38:48 +08:00
brainstorming trainer code but broken
This commit is contained in:
1 parent
a9c0d5b97f
commit
a7167f890e
9 files changed
+166
-31
No files matched your search
@@ -1,10 +1,18 @@
|
||||
import torch.optim as optim
|
||||
from torch import optim
|
||||
|
||||
|
||||
class Optimizer:
|
||||
"""_summary_"""
|
||||
|
||||
def __init__(self, params: dict) -> None:
|
||||
def __init__(
|
||||
self,
|
||||
params: dict,
|
||||
lr: float) -> None:
|
||||
"""
|
||||
Args:
|
||||
params (dict): _description_
|
||||
lr (float): Learning rate.
|
||||
"""
|
||||
self.optimizer = optim.Adam(params)
|
||||
|
||||
def test(self):
|
||||
|
||||
Reference in new issue
Block a user