Called before finalizing the graph. Override this method to setup the ops used in the callback. This is the same as ``tf.train.SessionRunHook.begin()``.
(self)
| 59 | self._setup_graph() |
| 60 | |
| 61 | def _setup_graph(self): |
| 62 | """ |
| 63 | Called before finalizing the graph. |
| 64 | Override this method to setup the ops used in the callback. |
| 65 | This is the same as ``tf.train.SessionRunHook.begin()``. |
| 66 | """ |
| 67 | pass |
| 68 | |
| 69 | def before_train(self): |
| 70 | self._before_train() |