Skip to content

Bug: missing DiffusionActiveInference object attribute self.epistemic_optimizer #1

@jeipollack

Description

@jeipollack

When testing deployment, I encountered this AttributeError:

AttributeError: 'DiffusionActiveInference' object has no attribute 'epistemic_optimizer'

Right after setting, self.epistemic_estimator, I added the line:

+        self.epistemic_optimizer = torch.optim.Adam(
+            self.epistemic_estimator.parameters(),
+            lr=self.config.epistemic_lr if hasattr(self.config, "epistemic_lr") else 1e-4
+        )

And re-deployed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions