Test code in pytorch 2.4 (#285)

* test code in pytorch 2.4

* update
This commit is contained in:
Sebastian Raschka
2024-07-24 21:53:41 -05:00
committed by GitHub
parent 6cbe6520a2
commit 08040f024c
17 changed files with 509 additions and 377 deletions

View File

@@ -28,6 +28,27 @@
"# Chapter 4 Exercise solutions"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "5b2fac7a-fdcd-437c-b1c4-0b35a31cd489",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"torch version: 2.4.0\n"
]
}
],
"source": [
"from importlib.metadata import version\n",
"\n",
"import torch\n",
"print(\"torch version:\", version(\"torch\"))"
]
},
{
"cell_type": "markdown",
"id": "5fea8be3-30a1-4623-a6d7-b095c6c1092e",
@@ -38,7 +59,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"id": "2751b0e5-ffd3-4be2-8db3-e20dd4d61d69",
"metadata": {},
"outputs": [],
@@ -60,7 +81,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"id": "1bcaffd1-0cf6-4f8f-bd53-ab88a37f443e",
"metadata": {},
"outputs": [
@@ -79,7 +100,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"id": "c1dd06c1-ab6c-4df7-ba73-f9cd54b31138",
"metadata": {},
"outputs": [
@@ -141,7 +162,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"id": "90185dea-81ca-4cdc-aef7-4aaf95cba946",
"metadata": {},
"outputs": [],
@@ -205,7 +226,7 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": 6,
"id": "2587e011-78a4-479c-a8fd-961cc40a5fd4",
"metadata": {},
"outputs": [
@@ -262,7 +283,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 7,
"id": "5fee2cf5-61c3-4167-81b5-44ea155bbaf2",
"metadata": {},
"outputs": [],
@@ -282,7 +303,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 8,
"id": "5aa1b0c1-d78a-48fc-ad08-4802458b43f7",
"metadata": {},
"outputs": [],
@@ -351,7 +372,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 9,
"id": "1d013d32-c275-4f42-be21-9010f1537227",
"metadata": {},
"outputs": [],