未验证 提交 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__":
'--forward_yaml_paths',
type=str,
nargs='+',
default=str(current_dir / "op .parsed.yaml"),
default=[str(current_dir / "op .parsed.yaml")],
help="forward op yaml file.",
)
parser.add_argument(
'--backward_yaml_paths',
type=str,
nargs='+',
default=str(current_dir / "backward_op .parsed.yaml"),
default=[str(current_dir / "backward_op .parsed.yaml")],
help="backward op yaml file.",
)
......
......@@ -409,7 +409,7 @@ def main():
'--api_yaml_path',
help='path to api yaml file',
nargs='+',
default='paddle/phi/api/yaml/ops.yaml',
default=['paddle/phi/api/yaml/ops.yaml'],
)
parser.add_argument(
......
......@@ -351,7 +351,7 @@ def main():
'--backward_yaml_path',
help='path to backward yaml file',
nargs='+',
default='paddle/phi/api/yaml/backward.yaml',
default=['paddle/phi/api/yaml/backward.yaml'],
)
parser.add_argument(
'--backward_header_path',
......
......@@ -147,7 +147,7 @@ def main():
'--api_yaml_path',
nargs='+',
help='path to api yaml file',
default='paddle/phi/api/yaml/ops.yaml',
default=['paddle/phi/api/yaml/ops.yaml'],
)
parser.add_argument(
......
......@@ -181,7 +181,7 @@ def main():
'--api_yaml_path',
help='path to api yaml file',
nargs='+',
default='paddle/phi/api/yaml/ops.yaml',
default=['paddle/phi/api/yaml/ops.yaml'],
)
parser.add_argument(
'--wrapped_infermeta_header_path',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册