Skip to content

Commit

Permalink
Character-level text generation in pytorch
Browse files Browse the repository at this point in the history
  • Loading branch information
alimoezzi committed Mar 30, 2021
1 parent d9d0de0 commit 38c4462
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions character_wise_RNN.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"cells": [
{
"cell_type": "markdown",
"metadata": {
"collapsed": true,
"pycharm": {
"name": "#%% md\n"
}
},
"source": [
"# character-wise RNN"
]
},
{
"cell_type": "markdown",
"source": [
"![Overview](https://github.com/udacity/deep-learning/raw/78c91a5607ecfdc29b762e45c082d7ca5047c8a1/intro-to-rnns/assets/charseq.jpeg)"
],
"metadata": {
"collapsed": false
}
},
{
"cell_type": "code",
"execution_count": 3,
"outputs": [],
"source": [
"\n",
"import time\n",
"from collections import namedtuple\n",
"import torch\n",
"from torch import nn\n",
"import torch.nn.functional as F\n",
"import numpy as np"
],
"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 38c4462

Please sign in to comment.