Commit 8908e6d4 authored by Yuxin Wu's avatar Yuxin Wu

update docs

parent 940d4167
...@@ -46,7 +46,7 @@ class ModelSaver(Callback): ...@@ -46,7 +46,7 @@ class ModelSaver(Callback):
def _setup_graph(self): def _setup_graph(self):
assert self.checkpoint_dir is not None, \ assert self.checkpoint_dir is not None, \
"ModelSaver() doesn't have a valid checkpoint directory." "Please provide 'checkpoint_dir' for ModelSaver, or use logger.set_logger_dir()"
vars = [] vars = []
for key in self.var_collections: for key in self.var_collections:
vars.extend(tf.get_collection(key)) vars.extend(tf.get_collection(key))
......
...@@ -80,8 +80,8 @@ def BatchNorm(inputs, axis=None, training=None, momentum=0.9, epsilon=1e-5, ...@@ -80,8 +80,8 @@ def BatchNorm(inputs, axis=None, training=None, momentum=0.9, epsilon=1e-5,
1. Accepts an alternative `data_format` option when `axis` is None. For 2D input, this argument will be ignored. 1. Accepts an alternative `data_format` option when `axis` is None. For 2D input, this argument will be ignored.
2. Default value for `momentum` and `epsilon` is different. 2. Default value for `momentum` and `epsilon` is different.
3. Default value for `training` is automatically obtained from tensorpack's `TowerContext`, but can be overwritten. 3. Default value for `training` is automatically obtained from tensorpack's `TowerContext`, but can be overwritten.
4. Support the `internal_update` option, which cover more use cases than the standard collection-based update. 4. Support the ``internal_update`` option, which cover more use cases than the standard collection-based update.
5. Support the `sync_statistics` option, which is very useful in small-batch models. 5. Support the ``sync_statistics`` option, which is very useful in small-batch models.
Args: Args:
internal_update (bool): if False, add EMA update ops to internal_update (bool): if False, add EMA update ops to
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment