summaryrefslogtreecommitdiff
path: root/quickstart_tutorial.ipynb
diff options
context:
space:
mode:
authorAnthony Wang2021-08-24 20:27:14 -0500
committerAnthony Wang2021-08-24 20:27:14 -0500
commitb8133346a4a626451436883f35477c8014de4a4b (patch)
tree4d90baa08f94f8f62c0f8575f319f96e39ae2595 /quickstart_tutorial.ipynb
parent8816c54f44c615481a712fa14e494ae9c91c6f91 (diff)
Add latest code
Diffstat (limited to 'quickstart_tutorial.ipynb')
-rw-r--r--quickstart_tutorial.ipynb39
1 files changed, 25 insertions, 14 deletions
diff --git a/quickstart_tutorial.ipynb b/quickstart_tutorial.ipynb
index 4e847d9..f2ba6c8 100644
--- a/quickstart_tutorial.ipynb
+++ b/quickstart_tutorial.ipynb
@@ -45,7 +45,7 @@
},
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": 3,
"metadata": {
"collapsed": false,
"jupyter": {
@@ -79,23 +79,14 @@
},
{
"cell_type": "code",
- "execution_count": 2,
+ "execution_count": 4,
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
}
},
- "outputs": [
- {
- "name": "stderr",
- "output_type": "stream",
- "text": [
- "/home/ta180m/git/PyTorch/.venv/lib/python3.9/site-packages/torchvision/datasets/mnist.py:498: UserWarning: The given NumPy array is not writeable, and PyTorch does not support non-writeable tensors. This means you can write to the underlying (supposedly non-writeable) NumPy array using the tensor. You may want to copy the array to protect its data or make it writeable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at /pytorch/torch/csrc/utils/tensor_numpy.cpp:180.)\n",
- " return torch.from_numpy(parsed.astype(m[2], copy=False)).view(*s)\n"
- ]
- }
- ],
+ "outputs": [],
"source": [
"# Download training data from open datasets.\n",
"training_data = datasets.FashionMNIST(\n",
@@ -126,6 +117,26 @@
},
{
"cell_type": "code",
+ "execution_count": 6,
+ "metadata": {},
+ "outputs": [
+ {
+ "output_type": "execute_result",
+ "data": {
+ "text/plain": [
+ "torchvision.datasets.mnist.FashionMNIST"
+ ]
+ },
+ "metadata": {},
+ "execution_count": 6
+ }
+ ],
+ "source": [
+ "type(training_data)"
+ ]
+ },
+ {
+ "cell_type": "code",
"execution_count": 23,
"metadata": {
"collapsed": false,
@@ -770,9 +781,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.9.6"
+ "version": "3.9.6-final"
}
},
"nbformat": 4,
"nbformat_minor": 4
-}
+} \ No newline at end of file