Pytorch Tensorboard NameError

I’m trying to use torch.utils.tensorboard.
But when I call ‘writer.add_scalar’, it crashes with NameError: name ‘workspace’ is not defined

The problem is in tensorboard/writer.py, line 293, in add_scalar
scalar_value = workspace.FetchBlob(scalar_value)

How can I fix this issue?
I already installed ‘future’, but it did not help.

1 Like

Sharing the code could fetch you better replies.:grin:

The issue solve. I was putting weird value in the writer.

1 Like

Im facing the same problem on the workspace name, could you share me your solution? what were the weird logging value you had.

Thanks