MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / _module_match

Method _module_match

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

match_replacedMethod · 0.45

Tested by

no test coverage detected