Skip to content

Commit

Permalink
fix: fix global name not defined error.
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Aug 20, 2018
1 parent a50b43c commit 339b135
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions 08.machine_translation/README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ for data in test_data():
return_numpy=False)

result_ids = np.array(results[0])
result_ids_lod = results[0].lod()
result_scores = np.array(results[1])

print("Original sentence:")
Expand Down
1 change: 1 addition & 0 deletions 08.machine_translation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ for data in test_data():
return_numpy=False)

result_ids = np.array(results[0])
result_ids_lod = results[0].lod()
result_scores = np.array(results[1])

print("Original sentence:")
Expand Down
1 change: 1 addition & 0 deletions 08.machine_translation/index.cn.html
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@
return_numpy=False)

result_ids = np.array(results[0])
result_ids_lod = results[0].lod()
result_scores = np.array(results[1])

print("Original sentence:")
Expand Down
1 change: 1 addition & 0 deletions 08.machine_translation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@
return_numpy=False)

result_ids = np.array(results[0])
result_ids_lod = results[0].lod()
result_scores = np.array(results[1])

print("Original sentence:")
Expand Down
1 change: 1 addition & 0 deletions 08.machine_translation/infer.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def decode_main(use_cuda):
return_numpy=False)

result_ids = np.array(results[0])
result_ids_lod = results[0].lod()
result_scores = np.array(results[1])

print("Original sentence:")
Expand Down

0 comments on commit 339b135

Please sign in to comment.