Skip to content
Snippets Groups Projects
Unverified Commit 2c41cc7f authored by i-robot's avatar i-robot Committed by Gitee
Browse files

!2204 fix ascend310 precision problem of warpctc

Merge pull request !2204 from 吕昱峰(Nate.River)/master
parents 7fa53168 78764201
No related branches found
No related tags found
No related merge requests found
......@@ -70,7 +70,7 @@ def get_result(result_path, label_path):
label = label_dict[file]
labels.append(label)
resultPath = os.path.join(result_path, file)
output = np.fromfile(resultPath, dtype=np.float16).reshape((-1, batch_Size, 11))
output = np.fromfile(resultPath, dtype=np.float32).reshape((-1, batch_Size, 11))
preds.append(get_prediction(output))
acc = round(calcul_acc(preds, labels), 3)
print("Total data: {}, accuracy: {}".format(len(labels), acc))
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment