MCPcopy Create free account
hub / github.com/TeleHuman/PBHC / batch_update_data

Method batch_update_data

humanoidverse/agents/modules/data_utils.py:59–63  ·  view source on GitHub ↗
(self, key: str, data: Tensor)

Source from the content-addressed store, hash-verified

57 getattr(self, key)[self.step].copy_(data)
58
59 def batch_update_data(self, key: str, data: Tensor):
60 # This class was partially copied from https://github.com/NVlabs/ProtoMotions/blob/94059259ba2b596bf908828cc04e8fc6ff901114/phys_anim/agents/utils/data_utils.py
61 assert not data.requires_grad
62 getattr(self, key)[:] = data
63 # self.store_dict[key] += self.total_sum()
64
65 def _save_hidden_states(self, hidden_states):
66 assert NotImplementedError

Callers 3

_rollout_stepMethod · 0.80
_rollout_stepMethod · 0.80
_rollout_stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected