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

Function get_default_args

deepspeed/comm/utils.py:59–61  ·  view source on GitHub ↗
(func)

Source from the content-addressed store, hash-verified

57
58
59def get_default_args(func):
60 signature = inspect.signature(func)
61 return {k: v.default for k, v in signature.parameters.items() if v.default is not inspect.Parameter.empty}
62
63
64# We need this hacky function since torch doesn't consistently name or place the input tensor args

Callers 2

get_tensor_kwargFunction · 0.85
log_wrapperFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected