add package versions to the top of the notebook

This commit is contained in:
rasbt
2024-01-01 19:41:18 +01:00
parent c17a8c2d8d
commit ea4b6c4e5f
3 changed files with 88 additions and 1 deletions

View File

@@ -8,6 +8,35 @@
"# Chapter 3: Understanding Attention Mechanisms"
]
},
{
"cell_type": "markdown",
"id": "c29bcbe8-a034-43a2-b557-997b03c9882d",
"metadata": {},
"source": [
"Packages that are being used in this notebook:"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "e58f33e8-5dc9-4dd5-ab84-5a011fa11d92",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"torch version: 2.0.1\n"
]
}
],
"source": [
"from importlib.metadata import version\n",
"import torch\n",
"\n",
"print(\"torch version:\", version(\"torch\"))"
]
},
{
"cell_type": "markdown",
"id": "ecc4dcee-34ea-4c05-9085-2f8887f70363",
@@ -1760,7 +1789,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.6"
"version": "3.11.4"
}
},
"nbformat": 4,