Skip to content

Commit 6124fb4

Browse files
committed
Created using Colaboratory
1 parent a2fc099 commit 6124fb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

notebookes/transformer/transformer_positional_encoding_graph.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"colab": {
66
"name": "transformer positional encoding graph.ipynb",
77
"provenance": [],
8-
"authorship_tag": "ABX9TyOVnZgNFgQhMqHjVub9T0Qj",
8+
"authorship_tag": "ABX9TyPsV1xgE7KIo3Yoa3Gacsfy",
99
"include_colab_link": true
1010
},
1111
"kernelspec": {
@@ -47,7 +47,7 @@
4747
},
4848
"source": [
4949
"\n",
50-
"\n",
50+
"# Code from https://www.tensorflow.org/tutorials/text/transformer\n",
5151
"def get_angles(pos, i, d_model):\n",
5252
" angle_rates = 1 / np.power(10000, (2 * (i//2)) / np.float32(d_model))\n",
5353
" return pos * angle_rates\n",

0 commit comments

Comments
 (0)