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

cannot import name "hyperparams_pb2' from lingvo.core' how to deal with #318

Open
WenTao0025 opened this issue Jun 19, 2023 · 1 comment

Comments

@WenTao0025
Copy link

python3 -m lingvo.trainer --run_locally=cpu --mode=sync --model=mnist.LeNet5 --logdir=/tmp/mnist/log
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.9/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/tmp/lingvo/lingvo/trainer.py", line 34, in
from lingvo import base_trial
File "/tmp/lingvo/lingvo/base_trial.py", line 19, in
from lingvo.core import hyperparams
File "/tmp/lingvo/lingvo/core/hyperparams.py", line 45, in
from lingvo.core import hyperparams_pb2
ImportError: cannot import name 'hyperparams_pb2' from 'lingvo.core' (/tmp/lingvo/lingvo/core/init.py)

@WenTao0025 WenTao0025 changed the title cannot import name "hyperparams_pb2 cannot import name "hyperparams_pb2' from lingvo.core' how to deal with Jun 19, 2023
@MrsButterfly
Copy link

I have this problem too.

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

2 participants