master
YunMao 3 years ago
parent 3e714d2ace
commit 408ac1e58d

@ -565,7 +565,7 @@
"import torch.nn as nn\n",
"import torch.nn.functional as F"
],
"execution_count": 3,
"execution_count": null,
"outputs": []
},
{
@ -677,7 +677,7 @@
"def ResNet18():\n",
" return ResNet(ResidualBlock)"
],
"execution_count": 4,
"execution_count": null,
"outputs": []
},
{
@ -733,7 +733,7 @@
"\n",
"\n"
],
"execution_count": 6,
"execution_count": null,
"outputs": []
},
{
@ -777,7 +777,7 @@
"##############################################################\n",
"\n"
],
"execution_count": 7,
"execution_count": null,
"outputs": [
{
"output_type": "stream",
@ -870,7 +870,7 @@
" # check_accuracy(loader_val, model)\n",
" print()"
],
"execution_count": 9,
"execution_count": null,
"outputs": [
{
"output_type": "stream",
@ -6017,7 +6017,7 @@
"# save the model\r\n",
"torch.save(model.state_dict(), 'model.pt')"
],
"execution_count": 17,
"execution_count": null,
"outputs": [
{
"output_type": "stream",
@ -6296,7 +6296,7 @@
" axarr[i, j].imshow(act[i * nrows + j].cpu())\n",
" axarr[i, j].axis('off')"
],
"execution_count": 12,
"execution_count": null,
"outputs": [
{
"output_type": "stream",

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save