未验证 提交 595338c6 编写于 作者: 六个骨头 提交者: GitHub

fix bug in paddle/phi/api/yaml/generator (#48659)

* fix bug

* fix bugs in api_gen tools
上级 790e7c38
...@@ -40,14 +40,14 @@ if __name__ == "__main__": ...@@ -40,14 +40,14 @@ if __name__ == "__main__":
'--forward_yaml_paths', '--forward_yaml_paths',
type=str, type=str,
nargs='+', nargs='+',
default=str(current_dir / "op .parsed.yaml"), default=[str(current_dir / "op .parsed.yaml")],
help="forward op yaml file.", help="forward op yaml file.",
) )
parser.add_argument( parser.add_argument(
'--backward_yaml_paths', '--backward_yaml_paths',
type=str, type=str,
nargs='+', nargs='+',
default=str(current_dir / "backward_op .parsed.yaml"), default=[str(current_dir / "backward_op .parsed.yaml")],
help="backward op yaml file.", help="backward op yaml file.",
) )
......
...@@ -409,7 +409,7 @@ def main(): ...@@ -409,7 +409,7 @@ def main():
'--api_yaml_path', '--api_yaml_path',
help='path to api yaml file', help='path to api yaml file',
nargs='+', nargs='+',
default='paddle/phi/api/yaml/ops.yaml', default=['paddle/phi/api/yaml/ops.yaml'],
) )
parser.add_argument( parser.add_argument(
......
...@@ -351,7 +351,7 @@ def main(): ...@@ -351,7 +351,7 @@ def main():
'--backward_yaml_path', '--backward_yaml_path',
help='path to backward yaml file', help='path to backward yaml file',
nargs='+', nargs='+',
default='paddle/phi/api/yaml/backward.yaml', default=['paddle/phi/api/yaml/backward.yaml'],
) )
parser.add_argument( parser.add_argument(
'--backward_header_path', '--backward_header_path',
......
...@@ -147,7 +147,7 @@ def main(): ...@@ -147,7 +147,7 @@ def main():
'--api_yaml_path', '--api_yaml_path',
nargs='+', nargs='+',
help='path to api yaml file', help='path to api yaml file',
default='paddle/phi/api/yaml/ops.yaml', default=['paddle/phi/api/yaml/ops.yaml'],
) )
parser.add_argument( parser.add_argument(
......
...@@ -181,7 +181,7 @@ def main(): ...@@ -181,7 +181,7 @@ def main():
'--api_yaml_path', '--api_yaml_path',
help='path to api yaml file', help='path to api yaml file',
nargs='+', nargs='+',
default='paddle/phi/api/yaml/ops.yaml', default=['paddle/phi/api/yaml/ops.yaml'],
) )
parser.add_argument( parser.add_argument(
'--wrapped_infermeta_header_path', '--wrapped_infermeta_header_path',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册