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

Method _module_match

deepspeed/inference/engine.py:568–573  ·  view source on GitHub ↗
(self, module)

Source from the content-addressed store, hash-verified

566 return model_times
567
568 def _module_match(self, module):
569 for policy in generic_policies:
570 policy = policy()
571 if policy.match_replaced(module):
572 return True
573 return False
574
575 def _local_cuda_graph_used(self, module):
576 if isinstance(module, torch.nn.Module):

Callers 1

Calls 2

policyFunction · 0.50
match_replacedMethod · 0.45

Tested by

no test coverage detected