This seems like it should be such an easy thing but I'm having a little trouble figuring out the syntax behind it. Basically, I have this code:
Weights = []
Weights.append(tf.Variable(tf.random_normal( n_input, Population[sample][0]), 0, 1))
It returns the error that an 'int' object is not iterable. However, I can't for the life of me figure out why it's even trying to iterate over an integer.
Any ideas? Thank you!
tf.random_normal( (n_input, Population[sample][0]), 0, 1). That way it gives the shape as(n_input, Population[sample][0]).