TypeError: list of tensors when waiting for a single tensor - when using const with tf.random_normal
2 answers
Someone else answered this question in another thread at fooobar.com/questions/1002229 / ...
Essentially tf.constant()
takes a NumPy array as an argument or some sort of array or just a value.
tf.random_normal()
returns a tensor, which cannot be an argument tf.constant()
.
To fix this use tf.Variable()
instead tf.constant()
.
See the answer at the link. Man explains it better.
+5
source to share