Home | History | Annotate | Download | only in training

Lines Matching refs:init_op

67     sess = sm.prepare_session(master, init_op, saver, checkpoint_dir)
73 `prepare_session()` initializes or restores a model. It requires `init_op`
213 init_op=None,
232 either running the provided `init_op`, or calling the provided `init_fn`.
233 The local_init_op is also run after init_op and init_fn, regardless of
237 It is an error if the model cannot be recovered and no `init_op`
242 init_op: Optional `Operation` used to initialize the model.
254 optional `init_op` is called. The callable must accept one argument,
277 if init_op is None and not init_fn and self._local_init_op is None:
278 raise RuntimeError("Model is not initialized and no init_op or "
280 if init_op is not None:
281 sess.run(init_op, feed_dict=init_feed_dict)
289 "Init op: %s, init fn: %s, error: %s" % (_maybe_name(init_op),
298 (_maybe_name(init_op), init_fn, self._local_init_op, msg))