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

RuntimeError: [/build/VisualDL/visualdl/storage/storage.cc:43] #315

Closed
zhangguangzhi opened this issue Mar 13, 2018 · 2 comments
Closed

Comments

@zhangguangzhi
Copy link

I am using VisualDL and I get the following error. How should I troubleshoot

File "/usr/local/lib/python2.7/dist-packages/visualdl/python/storage.py", line 141, in scalar
return type2scalartype
RuntimeError: [/build/VisualDL/visualdl/storage/storage.cc:43]

@jetfuel
Copy link
Collaborator

jetfuel commented Mar 13, 2018

@zhangguangzhi Looking at the code history. I think storage.cc:43 is as following

Tablet Storage::AddTablet(const std::string& x) {
  CHECK(tablets_->count(x) == 0) << "tablet [" << x << "] has existed";

Maybe you were trying to create a new Scalar Writer with the same tag name within the same mode
Try change the mode name like this

logw = LogWriter(logdir, 200000)

# create scalars in mode train and test.
with logw.mode('train') as logger:
    scalar0 = logger.scalar("scratch/scalar")

with logw.mode('test') as logger:
    scalar1 = logger.scalar("scratch/scalar")

Hope this helps

@zhangguangzhi
Copy link
Author

@jetfuel Thank you, this is the reason.

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