提交 033482dd 编写于 作者: J jim19930609

Fixed yaml.load() method failure

上级 64e2421f
...@@ -103,13 +103,13 @@ def GetAutoGradMetaVectorName(string): ...@@ -103,13 +103,13 @@ def GetAutoGradMetaVectorName(string):
###################### ######################
def ReadFwdFile(filepath): def ReadFwdFile(filepath):
f = open(filepath, 'r') f = open(filepath, 'r')
contents = yaml.load(f) contents = yaml.load(f, Loader=yaml.FullLoader)
return contents return contents
def ReadBwdFile(filepath): def ReadBwdFile(filepath):
f = open(filepath, 'r') f = open(filepath, 'r')
contents = yaml.load(f) contents = yaml.load(f, Loader=yaml.FullLoader)
ret = {} ret = {}
for content in contents: for content in contents:
assert 'backward_api' in content.keys() assert 'backward_api' in content.keys()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册