---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-8-d171d879e9a1> in <module>()
1 # Construct model
----> 2 pred = conv_net(x, weights, biases, keep_prob)
3
4 # Define loss and optimizer
5 cost = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits=pred, labels=y))
<ipython-input-7-3fd71322152d> in conv_net(x, weights, biases, dropout)
18
19 # Convolution Layer
---> 20 conv1 = conv2d(x, weights['wc1'], biases['bc1'])
21 # Max Pooling (down-sampling)
22 conv1 = maxpool2d(conv1, k=2)
<ipython-input-7-3fd71322152d> in conv2d(x, W, b, strides)
3 def conv2d(x, W, b, strides=1):
4 # Conv2D wrapper, with bias and relu activation
----> 5 x = tf.nn.conv2d(x, W, strides=[1, strides, strides, 1], padding='SAME')
6 x = tf.nn.bias_add(x, b)
7 return tf.nn.relu(x)
/Users/wier702/.virtualenvs/uboonedl/lib/python2.7/site-packages/tensorflow/python/ops/gen_nn_ops.pyc in conv2d(input, filter, strides, padding, use_cudnn_on_gpu, data_format, name)
401 strides=strides, padding=padding,
402 use_cudnn_on_gpu=use_cudnn_on_gpu,
--> 403 data_format=data_format, name=name)
404 return result
405
/Users/wier702/.virtualenvs/uboonedl/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.pyc in apply_op(self, op_type_name, name, **keywords)
766 op = g.create_op(op_type_name, inputs, output_types, name=scope,
767 input_types=input_types, attrs=attr_protos,
--> 768 op_def=op_def)
769 if output_structure:
770 outputs = op.outputs
/Users/wier702/.virtualenvs/uboonedl/lib/python2.7/site-packages/tensorflow/python/framework/ops.pyc in create_op(self, op_type, inputs, dtypes, input_types, name, attrs, op_def, compute_shapes, compute_device)
2336 original_op=self._default_original_op, op_def=op_def)
2337 if compute_shapes:
-> 2338 set_shapes_for_outputs(ret)
2339 self._add_op(ret)
2340 self._record_op_seen_by_control_dependencies(ret)
/Users/wier702/.virtualenvs/uboonedl/lib/python2.7/site-packages/tensorflow/python/framework/ops.pyc in set_shapes_for_outputs(op)
1717 shape_func = _call_cpp_shape_fn_and_require_op
1718
-> 1719 shapes = shape_func(op)
1720 if shapes is None:
1721 raise RuntimeError(
/Users/wier702/.virtualenvs/uboonedl/lib/python2.7/site-packages/tensorflow/python/framework/ops.pyc in call_with_requiring(op)
1667
1668 def call_with_requiring(op):
-> 1669 return call_cpp_shape_fn(op, require_shape_fn=True)
1670
1671 _call_cpp_shape_fn_and_require_op = call_with_requiring
/Users/wier702/.virtualenvs/uboonedl/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.pyc in call_cpp_shape_fn(op, input_tensors_needed, input_tensors_as_shapes_needed, debug_python_shape_fn, require_shape_fn)
608 res = _call_cpp_shape_fn_impl(op, input_tensors_needed,
609 input_tensors_as_shapes_needed,
--> 610 debug_python_shape_fn, require_shape_fn)
611 if not isinstance(res, dict):
612 # Handles the case where _call_cpp_shape_fn_impl calls unknown_shape(op).
/Users/wier702/.virtualenvs/uboonedl/lib/python2.7/site-packages/tensorflow/python/framework/common_shapes.pyc in _call_cpp_shape_fn_impl(op, input_tensors_needed, input_tensors_as_shapes_needed, debug_python_shape_fn, require_shape_fn)
674 missing_shape_fn = True
675 else:
--> 676 raise ValueError(err.message)
677
678 if missing_shape_fn:
ValueError: Dimensions must be equal, but are 3600 and 1 for 'Conv2D_1' (op: 'Conv2D') with input shapes: [1,3,9600,3600], [5,5,1,32].