Say I have a certain the Tensor x whose dimensions are not defined upon graph initialization.
I can get its shape using:
x_shape = tf.shape(input=x)
Now if I want to create a variable based on the values defined in x_shape using:
y = tf.get_variable(variable_name="y", shape=[x_shape[0], 10])
I get an error, since the values passed to the argument shape must be int and not Tensor. How can I create such a dynamically shaped variable without using placeholders?