Skip to content

Commit 879d5b2

Browse files
committed
clean up notebook, add colab link.
1 parent 6dc6f9b commit 879d5b2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testing/examples.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"source": [
77
"# TensorSensor\n",
88
"\n",
9+
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/parrt/tensor-sensor/blob/sbrugman-patch-2/testing/examples.ipynb)\n",
10+
"\n",
911
"TensorSensor clarifies exceptions by augmenting messages and visualizing Python code to indicate the shape of tensor variables (see figure to the right for a teaser). It works with Tensorflow, PyTorch, JAX, and Numpy, as well as higher-level libraries like Keras and fastai. Besides trapping exceptions, TensorSensor can provide visualizations of code that executes without exception. You can also see the complete expression tree computation and the shapes of self-expression partial results.\n",
1012
"\n",
1113
"See article [Clarifying exceptions and visualizing tensor operations in deep learning code](https://explained.ai/tensor-sensor/index.html) at [explained.ai](https://explained.ai)."
@@ -1540,7 +1542,7 @@
15401542
"outputs": [],
15411543
"source": [
15421544
"import tsensor\n",
1543-
"with tsensor.explain(legend=True) as explained:\n",
1545+
"with tsensor.explain() as explained:\n",
15441546
" a = torch.relu(x)\n",
15451547
" b = W @ b + torch.zeros(2000,1)+(h+3).dot(h)"
15461548
]

0 commit comments

Comments
 (0)