mirror of
https://github.com/huggingface/lerobot.git
synced 2026-05-16 17:20:05 +00:00
Fix convergence of sac, multiple torch compile on the same model caused divergence
This commit is contained in:
@@ -285,9 +285,7 @@ def add_actor_information_and_train(
|
||||
# ds_meta=cfg.dataset,
|
||||
env_cfg=cfg.env,
|
||||
)
|
||||
|
||||
# compile policy
|
||||
policy = torch.compile(policy)
|
||||
|
||||
assert isinstance(policy, nn.Module)
|
||||
policy.train()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user