Skip to content

Commit b85b883

Browse files
committed
who needs sizes
1 parent 1ab5eda commit b85b883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytorch-tf.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"type_lookups[torchvision.models.squeezenet.Fire] = fire_module\n",
139139
"type_lookups[torch.nn.modules.batchnorm.BatchNorm2d] = batch_norm\n",
140140
"tf.reset_default_graph()\n",
141-
"input_image = tf.placeholder('float',shape=[None,224,224,3],name='input_image')\n",
141+
"input_image = tf.placeholder('float',shape=[None,None,None,3],name='input_image')\n",
142142
"\n",
143143
"if True:\n",
144144
" outfp.write('def fire_module(x,inp,sp,e11p,e33p):\\n')\n",
@@ -170,7 +170,7 @@
170170
" out_s = out_s + ' '\n",
171171
"\n",
172172
" if idx is 0:\n",
173-
" outfp.write(out_s+\"self.image = tf.placeholder('float',shape=[None,224,224,3],name='input_image')\\n\")\n",
173+
" outfp.write(out_s+\"self.image = tf.placeholder('float',shape=[None,None,None,3],name='input_image')\\n\")\n",
174174
" outfp.write(out_s+\"self.layers = []\\n\")\n",
175175
"\n",
176176
" outfp.write(out_s+'x = self.image\\n')\n",

0 commit comments

Comments
 (0)