Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@
"\n",
" # Then just stack layers on top of one another\n",
" # the first specifies the shape of the inputs expected input\n",
" model.add(Input(input_shape, name=\"Inputs\"))\n",
" model.add(Input(shape=[input_shape], name=\"Inputs\"))\n",
"\n",
" # Then we stack on depth number of consectutive dense layers\n",
" # To write more compact code we can include the activation\n",
Expand Down Expand Up @@ -491,7 +491,7 @@
" input_shape: int, width: int, depth: int, activation: str, learning_rate=10**(-3), final_activation: str = \"linear\"\n",
"):\n",
" # First we create an input layer\n",
" inputs = Input(input_shape, name=\"Inputs\")\n",
" inputs = Input(shape=[input_shape], name=\"Inputs\")\n",
"\n",
" # Pass it to the hidden variable we will reuse\n",
" hidden = inputs\n",
Expand Down