MCPcopy Create free account
hub / github.com/OpenDriveLab/TCP / __init__

Method __init__

TCP/train.py:22–27  ·  view source on GitHub ↗
(self, config, lr)

Source from the content-addressed store, hash-verified

20
21class TCP_planner(pl.LightningModule):
22 def __init__(self, config, lr):
23 super().__init__()
24 self.lr = lr
25 self.config = config
26 self.model = TCP(config)
27 self._load_weight()
28
29 def _load_weight(self):
30 rl_state_dict = torch.load(self.config.rl_ckpt, map_location='cpu')['policy_state_dict']

Callers

nothing calls this directly

Calls 2

_load_weightMethod · 0.95
TCPClass · 0.85

Tested by

no test coverage detected