Skip to content

Commit

Permalink
Merge pull request #289 from P01son6415/fix
Browse files Browse the repository at this point in the history
Fix TypeError on ernie_encoder.py
  • Loading branch information
Meiyim authored Aug 27, 2019
2 parents 962d926 + 7d32579 commit 9957111
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ernie_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ def main(args):
total_top_layer_emb = np.concatenate(total_top_layer_emb)

with open(os.path.join(args.output_dir, "cls_emb.npy"),
"w") as cls_emb_file:
"wb") as cls_emb_file:
np.save(cls_emb_file, total_cls_emb)
with open(os.path.join(args.output_dir, "top_layer_emb.npy"),
"w") as top_layer_emb_file:
"wb") as top_layer_emb_file:
np.save(top_layer_emb_file, total_top_layer_emb)


Expand Down

0 comments on commit 9957111

Please sign in to comment.