MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get_args

Function get_args

tensorflow/tools/compatibility/tf_upgrade_v2_test.py:50–56  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

48
49
50def get_args(symbol):
51 if hasattr(inspect, "signature"):
52 signature = inspect.signature(symbol)
53 # Ignore *args and **kwargs for now.
54 return [param.name for param in signature.parameters.values()
55 if param.kind == param.POSITIONAL_OR_KEYWORD]
56 return tf_inspect.getargspec(symbol)[0]
57
58
59def get_func_and_args_from_str(call_str):

Callers 1

conversion_visitorMethod · 0.70

Calls 2

signatureMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected