Given that I have some input batch x with shape (batch_size, n_features) how would I use tf.get_variable(...) to create another matrix with shape (batch_size) if it isn't known ahead of time.
For example I am able to do:
b = tf.zeros(shape = (tf.shape(x)[0]))
But I am unable to do:
b = tf.get_variable("b", shape = (tf.shape(x)[0]), initializer = tf.constant_initializer(0.0))
shape=there should be a parenthesis opening, in both code snippets