Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a glitch fix in inference #302

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ cd examples/inference/python
then you can check the performance by simply running following commands. `hf_bart_export.py` is used to transform pytorch weights to LightSeq protobuffer.

```shell
python export/hf_bart_export.py
python export/huggingface/hf_bart_export.py
python test/ls_bart.py
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
Export Hugging Face BART models to protobuf/hdf5 format.
"""
import os
import sys
sys.path.append(
os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "..", ".."))
)
from collections import OrderedDict

import tensorflow as tf
Expand Down