MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / get_modules

Method get_modules

tests/unit/modelingpreln.py:463–466  ·  view source on GitHub ↗
(self, big_node, input)

Source from the content-addressed store, hash-verified

461 return self.grads
462
463 def get_modules(self, big_node, input):
464 for mdl in big_node.named_children():
465 self.graph.append(mdl)
466 self.get_modules(self, mdl, input)
467
468 def forward(self, hidden_states, attention_mask, output_all_encoded_layers=True, checkpoint_activations=False):
469 all_encoder_layers = []

Callers

nothing calls this directly

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected