MCPcopy Create free account
hub / github.com/BrainCoTech/RevoLab / forward

Method forward

scripts/hora/export_onnx.py:139–143  ·  view source on GitHub ↗
(self, obs: torch.Tensor, proprio_hist: torch.Tensor)

Source from the content-addressed store, hash-verified

137 self.rms_hist = rms_hist
138
139 def forward(self, obs: torch.Tensor, proprio_hist: torch.Tensor) -> torch.Tensor:
140 obs_n = self.rms_obs(obs)
141 hist_n = self.rms_hist(proprio_hist)
142 mu = self.model.act_inference({"obs": obs_n, "proprio_hist": hist_n})
143 return torch.clamp(mu, -1.0, 1.0)
144
145
146class Stage1ExportWrapper(torch.nn.Module):

Callers

nothing calls this directly

Calls 1

act_inferenceMethod · 0.80

Tested by

no test coverage detected