MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / record_forward_args

Method record_forward_args

Module/Optimization/PyposeOptimizers.py:31–35  ·  view source on GitHub ↗

Record the arguments passed to the forward() method.

(self, module, input)

Source from the content-addressed store, hash-verified

29 self._call_args = None
30
31 def record_forward_args(self, module, input):
32 """
33 Record the arguments passed to the forward() method.
34 """
35 self._call_args = input
36
37 @torch.no_grad()
38 @abstractmethod

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected