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?
It seems based on the docs here
that the validate_shape
parameter is now supported as desired, in case anyone else stumbles upon this question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With