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

TensorFlow 1 Session hanging when run with pure python but not with CLI #23

Open
lamhoangtung opened this issue Nov 2, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@lamhoangtung
Copy link
Contributor

One internal project of Techainer discover a bug that when using python3 server.py with a content like this:

from mlchain.base import ServeModel
from model import Model
from mlchain import mlconfig

# mlconfig.load_config('mlconfig.yaml')
model = Model(weight_path=mlconfig.weight,
                     debug=mlconfig.debug)
model = ServeModel(model)

if __name__ == "__main__":
    from mlchain.rpc.server.flask_server import FlaskServer
    FlaskServer(model).run(bind=['127.0.0.1:8004'], gunicorn=True)

Have cause the self.sess.run inside the model class to hang forever. While using mlchain run CLI doesn't.

Noted that this model use Tensorflow 1.14, 1.15 suffer the same problem

This DOES NOT effect production usage since we only use mlchain run but this bug is worth more examination.

@lamhoangtung lamhoangtung added the bug Something isn't working label Nov 2, 2020
@lamhoangtung lamhoangtung self-assigned this Nov 2, 2020
@lamhoangtung lamhoangtung added this to To do in mlchain-core-python via automation Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant