We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I run following sample code on both local anaconda and google colab. And on google colab no text label dispkayed on a result node.
Sample Code:
import torch from torchviz import make_dot print(torch.__version__) x_np = np.arange(-2, 2.1, 0.25) x = torch.tensor(x_np, requires_grad=True) y = 2 * x**2 + 2 z = y.sum() params = dict(x = x) make_dot(z, params=params)
Result 1 (local anaconda pytorch 1.7.1)
Result 2 (Google Colab pytorch 1.8.1)
The text was updated successfully, but these errors were encountered:
Hi,
As mentioned in the doc here:
pytorchviz/torchviz/dot.py
Line 50 in 5c91c3d
The green node is the Tensor passed as output. The () is its size. You can pass z=z to the params dict and that name will be displayed there.
()
z=z
Sorry, something went wrong.
No branches or pull requests
I run following sample code on both local anaconda and google colab.
And on google colab no text label dispkayed on a result node.
Sample Code:
Result 1 (local anaconda pytorch 1.7.1)
Result 2 (Google Colab pytorch 1.8.1)
The text was updated successfully, but these errors were encountered: