提交 b8897cc6 编写于 作者: Z zhiqiu

add enable_static()

上级 5549e083
......@@ -164,6 +164,8 @@ def main():
if __name__ == '__main__':
import paddle
paddle.enable_static()
parser = ArgsParser()
parser.add_argument(
"--json_eval",
......
......@@ -226,6 +226,8 @@ def main():
if __name__ == '__main__':
import paddle
paddle.enable_static()
parser = ArgsParser()
parser.add_argument(
"--output_dir",
......
......@@ -94,6 +94,8 @@ def main():
if __name__ == '__main__':
import paddle
paddle.enable_static()
parser = ArgsParser()
parser.add_argument(
"--output_dir",
......
......@@ -270,6 +270,8 @@ def main():
if __name__ == '__main__':
import paddle
paddle.enable_static()
parser = ArgsParser()
parser.add_argument(
"-f",
......
......@@ -313,6 +313,8 @@ def main():
if __name__ == '__main__':
import paddle
paddle.enable_static()
parser = ArgsParser()
parser.add_argument(
"-r",
......
......@@ -307,6 +307,8 @@ def main():
if __name__ == '__main__':
import paddle
paddle.enable_static()
parser = ArgsParser()
parser.add_argument(
"-r",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册