There should be a way to obtain a variable from a saved model
Author: ramon-garciaCreated Jan 29, 2023Updated Oct 17, 2023
Labelsenhancement
If one restores a model with SavedModelBundle::load() and obtains a graph, there is no way to get Variables from it. One can obtain an Operation with Graph::operation_by_name_required, but not a Variable.
Variable objects are needed, for instance, to run an optimizer with optimizer.minimize.
Source: tensorflow/rust