Skip to content

Commit 4a2df43

Browse files
committed
fixed shape descriptions for neural network input layer
1 parent cee9e78 commit 4a2df43

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

DQN/Deep Q Learning Solution.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
" \"\"\"\n",
118118
"\n",
119119
" # Placeholders for our input\n",
120-
" # Our input are 4 RGB frames of shape 160, 160 each\n",
120+
" # Our input are 4 grayscale frames of shape 84, 84 each\n",
121121
" self.X_pl = tf.placeholder(shape=[None, 84, 84, 4], dtype=tf.uint8, name=\"X\")\n",
122122
" # The TD target value\n",
123123
" self.y_pl = tf.placeholder(shape=[None], dtype=tf.float32, name=\"y\")\n",
@@ -166,7 +166,7 @@
166166
"\n",
167167
" Args:\n",
168168
" sess: Tensorflow session\n",
169-
" s: State input of shape [batch_size, 4, 160, 160, 3]\n",
169+
" s: State input of shape [batch_size, 4, 84, 84, 1]\n",
170170
"\n",
171171
" Returns:\n",
172172
" Tensor of shape [batch_size, NUM_VALID_ACTIONS] containing the estimated \n",
@@ -180,7 +180,7 @@
180180
"\n",
181181
" Args:\n",
182182
" sess: Tensorflow session object\n",
183-
" s: State input of shape [batch_size, 4, 160, 160, 3]\n",
183+
" s: State input of shape [batch_size, 4, 84, 84, 1]\n",
184184
" a: Chosen actions of shape [batch_size]\n",
185185
" y: Targets of shape [batch_size]\n",
186186
"\n",

DQN/Deep Q Learning.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
" \"\"\"\n",
111111
"\n",
112112
" # Placeholders for our input\n",
113-
" # Our input are 4 RGB frames of shape 160, 160 each\n",
113+
" # Our input are 4 grayscale frames of shape 84, 84 each\n",
114114
" self.X_pl = tf.placeholder(shape=[None, 84, 84, 4], dtype=tf.uint8, name=\"X\")\n",
115115
" # The TD target value\n",
116116
" self.y_pl = tf.placeholder(shape=[None], dtype=tf.float32, name=\"y\")\n",
@@ -160,7 +160,7 @@
160160
"\n",
161161
" Args:\n",
162162
" sess: Tensorflow session\n",
163-
" s: State input of shape [batch_size, 4, 160, 160, 3]\n",
163+
" s: State input of shape [batch_size, 4, 84, 84, 1]\n",
164164
"\n",
165165
" Returns:\n",
166166
" Tensor of shape [batch_size, NUM_VALID_ACTIONS] containing the estimated \n",
@@ -174,7 +174,7 @@
174174
"\n",
175175
" Args:\n",
176176
" sess: Tensorflow session object\n",
177-
" s: State input of shape [batch_size, 4, 160, 160, 3]\n",
177+
" s: State input of shape [batch_size, 4, 84, 84, 1]\n",
178178
" a: Chosen actions of shape [batch_size]\n",
179179
" y: Targets of shape [batch_size]\n",
180180
"\n",

DQN/Double DQN Solution.ipynb

+3-3
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
" \"\"\"\n",
110110
"\n",
111111
" # Placeholders for our input\n",
112-
" # Our input are 4 RGB frames of shape 160, 160 each\n",
112+
" # Our input are 4 grayscale frames of shape 84, 84 each\n",
113113
" self.X_pl = tf.placeholder(shape=[None, 84, 84, 4], dtype=tf.uint8, name=\"X\")\n",
114114
" # The TD target value\n",
115115
" self.y_pl = tf.placeholder(shape=[None], dtype=tf.float32, name=\"y\")\n",
@@ -136,7 +136,7 @@
136136
"\n",
137137
" Args:\n",
138138
" sess: Tensorflow session\n",
139-
" s: State input of shape [batch_size, 4, 160, 160, 3]\n",
139+
" s: State input of shape [batch_size, 4, 84, 84, 1]\n",
140140
"\n",
141141
" Returns:\n",
142142
" Tensor of shape [batch_size, NUM_VALID_ACTIONS] containing the estimated \n",
@@ -150,7 +150,7 @@
150150
"\n",
151151
" Args:\n",
152152
" sess: Tensorflow session object\n",
153-
" s: State input of shape [batch_size, 4, 160, 160, 3]\n",
153+
" s: State input of shape [batch_size, 4, 84, 84, 1]\n",
154154
" a: Chosen actions of shape [batch_size]\n",
155155
" y: Targets of shape [batch_size]\n",
156156
"\n",

0 commit comments

Comments
 (0)