Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Initializing a shared variable with unknown shape

Tags:

tensorflow

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?

like image 851
Petrarch Avatar asked Nov 09 '22 00:11

Petrarch


1 Answers

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.

like image 176
Matthew McDermott Avatar answered Nov 15 '22 07:11

Matthew McDermott