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

Function read_yaml_ops

tools/check_api_yaml_same.py:27–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25
26
27def read_yaml_ops():
28 ops_list = []
29 yaml_path = root_path + "/paddle/phi/ops/yaml/ops.yaml"
30 legacy_yaml_path = (
31 root_path + "/paddle/phi/ops/yaml/inconsistent/dygraph_ops.yaml"
32 )
33
34 with open(yaml_path, 'r') as f:
35 ops_list = yaml.load(f, Loader=yaml.FullLoader)
36 with open(legacy_yaml_path, 'r') as f:
37 ops_list.extend(yaml.load(f, Loader=yaml.FullLoader))
38
39 return ops_list
40
41
42def read_api(api_file):

Callers 1

Calls 2

loadMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected