Commit a0619cd6 authored by Yuxin Wu's avatar Yuxin Wu

clean-up imports and docs

parent bf57d0af
tensorpack.RL package
=====================
.. automodule:: tensorpack.RL
:members:
:undoc-members:
:show-inheritance:
...@@ -12,5 +12,4 @@ API Documentation ...@@ -12,5 +12,4 @@ API Documentation
predict predict
tfutils tfutils
utils utils
RL
tensorpack.tfutils package tensorpack.tfutils package
========================== ==========================
Module contents
---------------
.. automodule:: tensorpack.tfutils
:members:
:undoc-members:
:show-inheritance:
tensorpack.tfutils.collection module tensorpack.tfutils.collection module
------------------------------------ ------------------------------------
...@@ -88,12 +96,3 @@ tensorpack.tfutils.varreplace module ...@@ -88,12 +96,3 @@ tensorpack.tfutils.varreplace module
:members: :members:
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
Module contents
---------------
.. automodule:: tensorpack.tfutils
:members:
:undoc-members:
:show-inheritance:
...@@ -15,7 +15,6 @@ import six ...@@ -15,7 +15,6 @@ import six
from six.moves import queue from six.moves import queue
import zmq import zmq
from tensorpack.models.common import disable_layer_logging
from tensorpack.callbacks import Callback from tensorpack.callbacks import Callback
from tensorpack.tfutils.varmanip import SessionUpdate from tensorpack.tfutils.varmanip import SessionUpdate
from tensorpack.predict import OfflinePredictor from tensorpack.predict import OfflinePredictor
......
...@@ -13,6 +13,7 @@ import six ...@@ -13,6 +13,7 @@ import six
from six.moves import map, range from six.moves import map, range
from tensorpack import * from tensorpack import *
from tensorpack.tfutils import symbolic_functions, summary, optimizer
from tensorpack.tfutils.gradproc import GlobalNormClip from tensorpack.tfutils.gradproc import GlobalNormClip
from tensorpack.utils.globvars import globalns as param from tensorpack.utils.globvars import globalns as param
......
...@@ -17,7 +17,7 @@ from ..utils.develop import building_rtfd ...@@ -17,7 +17,7 @@ from ..utils.develop import building_rtfd
_LAYER_LOGGED = set() _LAYER_LOGGED = set()
_LAYER_REGISTERED = {} _LAYER_REGISTERED = {}
__all__ = ['layer_register', 'disable_layer_logging', 'get_registered_layer', 'VariableHolder'] __all__ = ['layer_register', 'VariableHolder']
class VariableHolder(object): class VariableHolder(object):
......
...@@ -34,4 +34,4 @@ for _, module_name, _ in iter_modules( ...@@ -34,4 +34,4 @@ for _, module_name, _ in iter_modules(
if module_name in _TO_IMPORT: if module_name in _TO_IMPORT:
_global_import(module_name) # import the content to tfutils.* _global_import(module_name) # import the content to tfutils.*
__all__.extend(['sessinit', 'summary', 'optimizer', __all__.extend(['sessinit', 'summary', 'optimizer',
'sesscreate', 'gradproc', 'varreplace']) 'sesscreate', 'gradproc', 'varreplace', 'symbolic_functions'])
...@@ -161,7 +161,7 @@ def stack_patches( ...@@ -161,7 +161,7 @@ def stack_patches(
""" """
Stacked patches into grid, to produce visualizations like the following: Stacked patches into grid, to produce visualizations like the following:
.. image:: https://github.com/ppwwyyxx/tensorpack/raw/master/examples/GAN/demo/CelebA-samples.jpg .. image:: https://github.com/ppwwyyxx/tensorpack/raw/master/examples/GAN/demo/BEGAN-CelebA-samples.jpg
Args: Args:
patch_list(list[ndarray] or ndarray): NHW or NHWC images in [0,255]. patch_list(list[ndarray] or ndarray): NHW or NHWC images in [0,255].
......
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