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

Model output various predicted result without re-init-model #1731

Open
kizcas opened this issue Feb 22, 2022 · 0 comments
Open

Model output various predicted result without re-init-model #1731

kizcas opened this issue Feb 22, 2022 · 0 comments

Comments

@kizcas
Copy link

kizcas commented Feb 22, 2022

Description

When we load the trained model to do predict at the first time, the predict output meets our expectation, but when we try to test the identical input again without reloading (i.e., initiation) the model. The result was different and would change every time. However, if the model was initiated each time, the output could be completely identical for the same input and correct. Thus it is curious whether reloading of model is necessary before prediction of the inputs each time, because the reloading of the weight file of the model is time consuming. Any suggestion are welcome.
...

Environment information

OS: Ubuntu 20.04

$ pip freeze | grep trax
# trax==1.4.1

$ pip freeze | grep tensor
# tensorboard==2.8.0
# tensorboard-data-server==0.6.1
# tensorboard-plugin-wit==1.6.0
# tensorflow==2.8.0
# tensorflow-datasets==4.5.2
# tensorflow-gpu==2.8.0
# tensorflow-hub==0.12.0
# tensorflow-io-gcs-filesystem==0.24.0
# tensorflow-metadata==1.6.0
# tensorflow-text==2.8.1


$ pip freeze | grep jax
# jax==0.3.0

$ python -V
# Python 3.9.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant