Skip to content

Commit

Permalink
Initialize RNN building block notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
alimoezzi committed Mar 15, 2021
1 parent 960c2e4 commit add8d0f
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions RNN_building_blocks.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"collapsed": true,
"pycharm": {
"name": "#%% md\n"
}
},
"source": [
"# RNN Building Blocks: injecting recursivity to supervised learner"
]
},
{
"cell_type": "code",
"execution_count": 1,
"outputs": [],
"source": [
"import torch\n",
"from torchvision import datasets, transforms\n",
"import torch.nn.functional as F\n",
"from torch import nn\n",
"torch.manual_seed(0)\n",
"torch.backends.cudnn.deterministic = True\n",
"torch.backends.cudnn.benchmark = False\n",
"\n",
"import numpy as np\n",
"np.random.seed(0)"
],
"metadata": {
"collapsed": false,
"pycharm": {
"name": "#%%\n"
}
}
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.6"
}
},
"nbformat": 4,
"nbformat_minor": 0
}

0 comments on commit add8d0f

Please sign in to comment.