MCPcopy Create free account
hub / github.com/PrathamLearnsToCode/paper2code / __repr__

Function __repr__

skills/paper2code/scaffolds/model_template.py:129–139  ·  view source on GitHub ↗

Print architecture summary.

(self)

Source from the content-addressed store, hash-verified

127 pass # REPLACE
128
129 def __repr__(self) -> str:
130 """Print architecture summary."""
131 total_params = sum(p.numel() for p in self.parameters())
132 trainable_params = sum(p.numel() for p in self.parameters() if p.requires_grad)
133 return (
134 f"{self.__class__.__name__}(\n"
135 f" config={self.config},\n"
136 f" total_params={total_params:,},\n"
137 f" trainable_params={trainable_params:,}\n"
138 f")"
139 )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected