0

How do I get variables (e.g., embedding table, RNN variables, etc.) after the model fitting, when using TensorFlowEstimator for fitting, such as in this skflow example? As tf.all_variables() returns empty list.

chentingpc
  • 1,283
  • 3
  • 18
  • 24

1 Answers1

1

You can use get_variable_names() in estimator.

Basically, you need to get graph and then call all_variables(). For example: with self._graph.as_default(): print([v.name for v in variables.all_variables()])

Yuan Tang
  • 696
  • 4
  • 15