Created
November 28, 2015 21:50
-
-
Save bayerj/12e6a80c36593173a489 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
ValueError Traceback (most recent call last) | |
<ipython-input-2-913092c38985> in <module>() | |
1 x = tf.placeholder('float32', [None, 784]) | |
----> 2 noised = x + tf.random_normal(x.get_shape()) | |
/Users/bayerj/anaconda/lib/python2.7/site-packages/tensorflow/python/ops/random_ops.pyc in random_normal(shape, mean, stddev, dtype, seed, name) | |
44 """ | |
45 with ops.op_scope([shape, mean, stddev], name, "random_normal") as name: | |
---> 46 shape_tensor = _ShapeTensor(shape) | |
47 mean_tensor = ops.convert_to_tensor( | |
48 mean, dtype=dtype, name="mean") | |
/Users/bayerj/anaconda/lib/python2.7/site-packages/tensorflow/python/ops/random_ops.pyc in _ShapeTensor(shape) | |
20 else: | |
21 dtype = None | |
---> 22 return ops.convert_to_tensor(shape, dtype=dtype, name="shape") | |
23 | |
24 # pylint: disable=protected-access | |
/Users/bayerj/anaconda/lib/python2.7/site-packages/tensorflow/python/framework/ops.pyc in convert_to_tensor(value, dtype, name) | |
466 for base_type, conversion_func in funcs_at_priority: | |
467 if isinstance(value, base_type): | |
--> 468 ret = conversion_func(value, dtype=dtype, name=name) | |
469 if not isinstance(ret, Tensor): | |
470 raise RuntimeError( | |
/Users/bayerj/anaconda/lib/python2.7/site-packages/tensorflow/python/ops/constant_op.pyc in _tensor_shape_tensor_conversion_function(s, dtype, name) | |
163 if not s.is_fully_defined(): | |
164 raise ValueError( | |
--> 165 "Cannot convert a partially known TensorShape to a Tensor: %s" % s) | |
166 if dtype is not None: | |
167 if dtype not in (types.int32, types.int64): | |
ValueError: Cannot convert a partially known TensorShape to a Tensor: TensorShape([Dimension(None), Dimension(784)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment