Skip to content

Commit c241e9b

Browse files
hsm207caisq
authored andcommitted
Fix typo (tensorflow#19923)
1 parent 507c48d commit c241e9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow/contrib/eager/python/examples/notebooks/4_high_level.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"# simply construct the object. Most layers take as a first argument the number\n",
6969
"# of output dimensions / channels.\n",
7070
"layer = tf.keras.layers.Dense(100)\n",
71-
"# The number of input dimensionss is often unnecessary, as it can be inferred\n",
71+
"# The number of input dimensions is often unnecessary, as it can be inferred\n",
7272
"# the first time the layer is used, but it can be provided if you want to \n",
7373
"# specify it manually, which is useful in some complex models.\n",
7474
"layer = tf.keras.layers.Dense(10, input_shape=(None, 5))"
@@ -267,7 +267,7 @@
267267
" * `build`, where you know the shapes of the input tensors and can do the rest of the initialization\n",
268268
" * `call`, where you do the forward computation\n",
269269
"\n",
270-
"Note that you don't have to wait until `build` is called to create your variables, you can also create them in `__init__`. However, the advantage of creating them in `build` is that it enables late variable creation based on the shape of the inputs the layer will operate on. On the other hand, creating variables in `__init__` would mean that shapes requires to create the variables will need to be explicitly specified."
270+
"Note that you don't have to wait until `build` is called to create your variables, you can also create them in `__init__`. However, the advantage of creating them in `build` is that it enables late variable creation based on the shape of the inputs the layer will operate on. On the other hand, creating variables in `__init__` would mean that shapes required to create the variables will need to be explicitly specified."
271271
]
272272
},
273273
{

0 commit comments

Comments
 (0)