forked from fossasia/visdom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Noisy cast for numerical titles (fixes fossasia#353)
Summary: Added a noisy cast for the case of numerical titles ONLY, this means that things like `opts={'title'=torch.tensor(10)}` are not covered here and are catched instead by an assertion error. A direct cast for these cases would depend on the string representation of the tensor/ndarray, which I don't think is generally desired. However adding a special cast for the case of scalar values might be worth it. I also didn't know if/where to put tests other than the demo, which I don't think is a good idea since its better that users give strings as titles from the beginning. Finally, I've never used lua before, a quick glance to the api showed me that the data is sent to the tornado server which unpacks the lua values into python, however I didn't quite get if it then calls the corresponding function in python or not. Closes fossasia#360 Differential Revision: D8102332 Pulled By: JackUrb fbshipit-source-id: 521b97e670484f7d567b5e2c9d54a2bc79175503
- Loading branch information
1 parent
fbec551
commit d5dc9fb
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters