I am a beginner of tensorflow. I would like to make the hidden layer size configurable. Let us say there is just one hidden layer, I would like
hidden1 = tf.layers.dense(X, n_hidden, activation=tf.nn.relu)
where 'n_hidden' is
n_hidden = tf.placeholder(tf.int64)
but I got a long error messages, at the end it is,
TypeError: int() argument must be a string or a number, not 'Tensor'
I searched for a while, most code examples have this output unit set by a constant or an int variable. How do I make it an configurable parameter of the program? Thanks.