Skip to content

Commit

Permalink
add diversity
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhare committed Mar 19, 2024
1 parent 61e5359 commit 82308b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/labs/lab7/7_1_SequenceModelling.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,7 @@
" for i in range(400):\n",
" tag_scores = model(inputs)\n",
" # 0 because there is a single seq as input, Batch = 1\n",
" c = sample(tag_scores[0]) \n",
" c = sample(tag_scores[0], diversity) \n",
" print(indices_char[c.item()], flush=True, end='')\n",
"\n",
" #adding new generated character to input\n",
Expand Down

0 comments on commit 82308b4

Please sign in to comment.