Skip to content

Commit fd7e568

Browse files
authored
Merge pull request #51 from offmannn/master
task2
2 parents 0946e54 + 0297c17 commit fd7e568

File tree

1 file changed

+96
-0
lines changed

1 file changed

+96
-0
lines changed

Tasks/daily tasks/ranjith/task2.ipynb

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
{
2+
"nbformat": 4,
3+
"nbformat_minor": 0,
4+
"metadata": {
5+
"colab": {
6+
"name": "Welcome To Colaboratory",
7+
"provenance": [],
8+
"collapsed_sections": [],
9+
"include_colab_link": true
10+
},
11+
"kernelspec": {
12+
"display_name": "Python 3",
13+
"name": "python3"
14+
},
15+
"accelerator": "GPU"
16+
},
17+
"cells": [
18+
{
19+
"cell_type": "markdown",
20+
"metadata": {
21+
"id": "view-in-github",
22+
"colab_type": "text"
23+
},
24+
"source": [
25+
"<a href=\"https://colab.research.google.com/github/offmannn/ComputerVision-with-PyTorch-Learning-Program/blob/master/Tasks/daily%20tasks/ranjith/task2.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
26+
]
27+
},
28+
{
29+
"cell_type": "code",
30+
"metadata": {
31+
"id": "PkUAI5Oc7b3g",
32+
"colab_type": "code",
33+
"colab": {}
34+
},
35+
"source": [
36+
"import torch\n",
37+
"from torch import nn"
38+
],
39+
"execution_count": 0,
40+
"outputs": []
41+
},
42+
{
43+
"cell_type": "code",
44+
"metadata": {
45+
"id": "BYcO0cQT8ASJ",
46+
"colab_type": "code",
47+
"colab": {}
48+
},
49+
"source": [
50+
"model=nn.Sequential(nn.Linear(784,128),\n",
51+
" nn.Linear(128,64),\n",
52+
" nn.Sigmoid(),\n",
53+
" nn.Linear(64,32),\n",
54+
" nn.Linear(32,10))"
55+
],
56+
"execution_count": 0,
57+
"outputs": []
58+
},
59+
{
60+
"cell_type": "code",
61+
"metadata": {
62+
"id": "O1jf_6B1ADY2",
63+
"colab_type": "code",
64+
"colab": {
65+
"base_uri": "https://localhost:8080/",
66+
"height": 158
67+
},
68+
"outputId": "d08bb76e-f972-448e-8b91-3d8869353636"
69+
},
70+
"source": [
71+
"model"
72+
],
73+
"execution_count": 4,
74+
"outputs": [
75+
{
76+
"output_type": "execute_result",
77+
"data": {
78+
"text/plain": [
79+
"Sequential(\n",
80+
" (0): Linear(in_features=784, out_features=128, bias=True)\n",
81+
" (1): Linear(in_features=128, out_features=64, bias=True)\n",
82+
" (2): Sigmoid()\n",
83+
" (3): Linear(in_features=64, out_features=32, bias=True)\n",
84+
" (4): Linear(in_features=32, out_features=10, bias=True)\n",
85+
")"
86+
]
87+
},
88+
"metadata": {
89+
"tags": []
90+
},
91+
"execution_count": 4
92+
}
93+
]
94+
}
95+
]
96+
}

0 commit comments

Comments
 (0)