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

warnings cannot be accessed in notebooks #1307

Open
yueyinqiu opened this issue May 4, 2024 · 1 comment
Open

warnings cannot be accessed in notebooks #1307

yueyinqiu opened this issue May 4, 2024 · 1 comment

Comments

@yueyinqiu
Copy link
Contributor

For example, the following codes can produce a warning in the console

using TorchSharp;

var loss = torch.nn.MSELoss();
var x = torch.zeros([]);
var y = torch.zeros([1]);
loss.call(x, y);

image

However this seems to be unable to access on other platforms, like polyglot notebooks.

@NiklasGustafsson
Copy link
Contributor

Right. The warning is coming from libtorch, and going to stderr. I don't know if there's a way to redirect errors to the Notebook console, but that would be the general solution.

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