MCPcopy
hub / github.com/deepspeedai/DeepSpeed / get_modules

Method get_modules

tests/unit/modeling.py:486–489  ·  view source on GitHub ↗
(self, big_node, input)

Source from the content-addressed store, hash-verified

484 return self.grads
485
486 def get_modules(self, big_node, input):
487 for mdl in big_node.named_children():
488 self.graph.append(mdl)
489 self.get_modules(self, mdl, input)
490
491 def forward(self, hidden_states, attention_mask, output_all_encoded_layers=True, checkpoint_activations=False):
492 all_encoder_layers = []

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected