Run MNIST on AlexNet and got ValueError: None values not supported

This is my 1st time running the MNIST dataset on AlexNet and I got this error.

Traceback (most recent call last):
  File "", line 161, in <module>
    pred = alexnet(x, weights,biases,keep_prob) # Feedforward predicted value
  File "", line 112, in alexnet
    _fc1_drop = tf.nn.dropout(_fc1, _keep_pro)  # Dropout is applied for the preventtion of overfitting
  File "/home/joshua/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/", line 1894, in dropout
    x = ops.convert_to_tensor(x, name="x")
  File "/home/joshua/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/", line 676, in convert_to_tensor
  File "/home/joshua/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/", line 741, in internal_convert_to_tensor
    ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
  File "/home/joshua/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/", line 113, in _constant_tensor_conversion_function
    return constant(v, dtype=dtype, name=name)
  File "/home/joshua/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/", line 102, in constant
    tensor_util.make_tensor_proto(value, dtype=dtype, shape=shape, verify_shape=verify_shape))
  File "/home/joshua/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/", line 364, in make_tensor_proto
    raise ValueError("None values not supported.")
ValueError: None values not supported.

What does it mean? And how to solve this?