Skip to content

Commit

Permalink
fixed dimension compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ziyin-dl committed Mar 29, 2018
1 parent 16af658 commit e934a4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tutorials/image/cifar10/cifar10.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def inference(images):
# local3
with tf.variable_scope('local3') as scope:
# Move everything into depth so we can perform a single matrix multiply.
reshape = tf.reshape(pool2, [images.get_shape()[0], -1])
reshape = tf.reshape(pool2, [images.get_shape().as_list()[0], -1])
dim = reshape.get_shape()[1].value
weights = _variable_with_weight_decay('weights', shape=[dim, 384],
stddev=0.04, wd=0.004)
Expand Down

0 comments on commit e934a4a

Please sign in to comment.