turn on camera opt by default (#727)

* camera opt by default

* fix tests
This commit is contained in:
Ethan Weber authored and GitHub committed 2022-10-07 11:21:21 -07:00
1 parent 9afe03eb4c
commit ee94f23f83
4 files changed
+33 -21

No files matched your search

+2 -1
View File
@@ -42,7 +42,8 @@ class OptimizerConfig(base_config.PrintableConfig):
def setup(self, params) -> Any:
"""Returns the instantiated object using the config."""
kwargs = vars(self)
del kwargs["_target"]
if "_target" in kwargs:
del kwargs["_target"]
return self._target(params, **kwargs)