update compile print

This commit is contained in:
Nicklas Hansen
2024-11-10 12:27:24 -08:00
parent c694d286f0
commit fb07cdac3f

View File

@@ -36,7 +36,7 @@ class TDMPC2(torch.nn.Module):
) if self.cfg.multitask else self._get_discount(cfg.episode_length)
self._prev_mean = torch.nn.Buffer(torch.zeros(self.cfg.horizon, self.cfg.action_dim, device=self.device))
if cfg.compile:
print('compiling - update')
print('Compiling update function with torch.compile...')
self._update = torch.compile(self._update, mode="reduce-overhead")
@property