question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error using `add_hparams`

See original GitHub issue

AttributeError: ‘EnumTypeWrapper’ object has no attribute ‘STATUS_SUCCESS’ Attempted to use add_hparams when compiled from source. TensorboardX version 1.8+9b9933a

Minimal runnable code to reproduce the behavior

from tensorboardX import SummaryWriter
writer = SummaryWriter()
writer.add_hparams({'lr': 1e-5, 'bsize': 20, 'n_hidden': 100}, {'accuracy': 0, 'loss': 0})
...

Expected behavior I followed the example file here

Screenshots If applicable, add screenshots to help explain your problem. image

Environment What is the result of pip list|grep -E "torch|proto|tensor" image

Python environment Which version of python are you using? Did you use Andconda or Virtualenv? No

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
clefourriercommented, Sep 11, 2019

I solved this issue (occuring in PyCharm as well as terminal) by updating to protobuf 3.9.1 (which will not help @RSKothari but might help @tmac1997 )

1reaction
lanpacommented, Oct 2, 2019

Thank you for sorting the problem out! @RSKothari @clefourrier

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hyperparameter tuning with Hparam dashboard throwing error
I had the same error and I fixed it by turning my train and test values from pandas dataframe to numpy array. So...
Read more >
valueerror: dataframe.dtypes for data must be int, float, bool or ...
Now, I want to construct a feature importance using Shap Values. However, when running the code it errors out at: ValueError: DataFrame.dtypes for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found