MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / get_api_name

Function get_api_name

tools/check_api_yaml_same.py:66–70  ·  view source on GitHub ↗
(api_item)

Source from the content-addressed store, hash-verified

64
65
66def get_api_name(api_item):
67 if api_item[0] == '+' or api_item[0] == '-' or api_item[0] == ' ':
68 return api_item.split(" ")[1].split(".")[-1]
69 else:
70 return api_item.split(" ")[0].split(".")[-1]
71
72
73def get_yaml_op_args(op_args):

Callers 1

Calls 1

splitMethod · 0.45

Tested by

no test coverage detected