Initialization of a generic variable of unknown form

The initializer Variableprovides a parameter validate_shapeso that you can change the form Variableafter initialization.

However, this is not like what get_variable()this parameter has and instead uses the default value validate_shape=Falsewhen creating a new one Variable. How to create a general Variableform that you can change after initialization?

+4
source share
1 answer

It seems that based on docs here that the parameter is validate_shapenow supported as desired, in case someone else stumbles upon this question.

+1
source

Source: https://habr.com/ru/post/1618425/


All Articles