The Variable
initializer provides a validate_shape
parameter so that you can change a Variable
shape after initialization.
However, it doesn't look like get_variable()
has that parameter and instead uses the default value of validate_shape=False
when creating a new Variable
. How can you create a shared Variable
whose shape you can change after initialization?