Skip to content

Commit

Permalink
Merge pull request #2 from orangetangerine/master
Browse files Browse the repository at this point in the history
May be we don't need two activation function after a fully connected layer?
  • Loading branch information
jchernus authored Feb 18, 2019
2 parents 56d4db9 + 9a92eeb commit 35be77e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions 1_5_CNN_Layers/4_2. Classify FashionMNIST, solution 1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@
" x = x.view(x.size(0), -1)\n",
" \n",
" # one linear layer\n",
" x = F.relu(self.fc1(x))\n",
" x = self.fc1(x)\n",
" # a softmax layer to convert the 10 outputs into a distribution of class scores\n",
" x = F.log_softmax(x, dim=1)\n",
" \n",
Expand Down Expand Up @@ -738,9 +738,9 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [conda env:cvnd_1]",
"display_name": "Python 3",
"language": "python",
"name": "conda-env-cvnd_1-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -752,7 +752,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.5.2"
"version": "3.6.1"
},
"widgets": {
"state": {},
Expand Down

0 comments on commit 35be77e

Please sign in to comment.