Skip to content

Commit

Permalink
Use default_factory instead of an instance for this dataclass field's…
Browse files Browse the repository at this point in the history
… default value.

PiperOrigin-RevId: 561458449
Change-Id: I2c91d266ec6de36025c9cffaf6173f111a635a07
  • Loading branch information
yilei authored and Copybara-Service committed Aug 30, 2023
1 parent 44d28ae commit 993826a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion acme/agents/jax/mbop/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ class MBOPConfig:
num_sgd_steps_per_step: How many gradient updates to perform per learner
step.
"""
mppi_config: mppi.MPPIConfig = mppi.MPPIConfig()
mppi_config: mppi.MPPIConfig = dataclasses.field(
default_factory=mppi.MPPIConfig
)
learning_rate: float = 3e-4
num_networks: int = 5
num_sgd_steps_per_step: int = 1

0 comments on commit 993826a

Please sign in to comment.