Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
seminar-breakout
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Shashank Suhas
seminar-breakout
Commits
c3f5307e
Commit
c3f5307e
authored
Jan 01, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix doc structure
parent
9c42c84f
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
12 additions
and
635 deletions
+12
-635
docs/index.rst
docs/index.rst
+1
-0
docs/modules/modules.rst
docs/modules/modules.rst
+0
-7
docs/modules/tensorpack.RL.rst
docs/modules/tensorpack.RL.rst
+0
-55
docs/modules/tensorpack.callbacks.rst
docs/modules/tensorpack.callbacks.rst
+0
-87
docs/modules/tensorpack.dataflow.dataset.rst
docs/modules/tensorpack.dataflow.dataset.rst
+0
-63
docs/modules/tensorpack.dataflow.imgaug.rst
docs/modules/tensorpack.dataflow.imgaug.rst
+0
-79
docs/modules/tensorpack.dataflow.rst
docs/modules/tensorpack.dataflow.rst
+0
-68
docs/modules/tensorpack.models.rst
docs/modules/tensorpack.models.rst
+0
-87
docs/modules/tensorpack.predict.rst
docs/modules/tensorpack.predict.rst
+0
-39
docs/modules/tensorpack.rst
docs/modules/tensorpack.rst
+0
-24
docs/modules/tensorpack.tfutils.rst
docs/modules/tensorpack.tfutils.rst
+0
-43
docs/modules/tensorpack.train.rst
docs/modules/tensorpack.train.rst
+0
-55
docs/modules/tensorpack.utils.rst
docs/modules/tensorpack.utils.rst
+0
-26
docs/update.sh
docs/update.sh
+1
-1
tensorpack/RL/__init__.py
tensorpack/RL/__init__.py
+2
-0
tensorpack/RL/common.py
tensorpack/RL/common.py
+1
-1
tensorpack/dataflow/__init__.py
tensorpack/dataflow/__init__.py
+3
-0
tensorpack/dataflow/dataset/__init__.py
tensorpack/dataflow/dataset/__init__.py
+3
-0
tensorpack/dataflow/imgaug/__init__.py
tensorpack/dataflow/imgaug/__init__.py
+1
-0
No files found.
docs/index.rst
View file @
c3f5307e
...
...
@@ -26,6 +26,7 @@ Contents:
modules/tensorpack.train
modules/tensorpack.utils
modules/tensorpack.tfutils
modules/tensorpack.predict
modules/tensorpack.RL
...
...
docs/modules/modules.rst
deleted
100644 → 0
View file @
9c42c84f
tensorpack
==========
.. toctree::
:maxdepth: 10
tensorpack
docs/modules/tensorpack.RL.rst
View file @
c3f5307e
tensorpack.RL package
=====================
Submodules
----------
tensorpack.RL.common module
---------------------------
.. automodule:: tensorpack.RL.common
:members:
:undoc-members:
:show-inheritance:
tensorpack.RL.envbase module
----------------------------
.. automodule:: tensorpack.RL.envbase
:members:
:undoc-members:
:show-inheritance:
tensorpack.RL.expreplay module
------------------------------
.. automodule:: tensorpack.RL.expreplay
:members:
:undoc-members:
:show-inheritance:
tensorpack.RL.gymenv module
---------------------------
.. automodule:: tensorpack.RL.gymenv
:members:
:undoc-members:
:show-inheritance:
tensorpack.RL.history module
----------------------------
.. automodule:: tensorpack.RL.history
:members:
:undoc-members:
:show-inheritance:
tensorpack.RL.simulator module
------------------------------
.. automodule:: tensorpack.RL.simulator
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: tensorpack.RL
:members:
:undoc-members:
...
...
docs/modules/tensorpack.callbacks.rst
View file @
c3f5307e
tensorpack.callbacks package
============================
Submodules
----------
tensorpack.callbacks.base module
--------------------------------
.. automodule:: tensorpack.callbacks.base
:members:
:undoc-members:
:show-inheritance:
tensorpack.callbacks.concurrency module
---------------------------------------
.. automodule:: tensorpack.callbacks.concurrency
:members:
:undoc-members:
:show-inheritance:
tensorpack.callbacks.dispatcher module
--------------------------------------
.. automodule:: tensorpack.callbacks.dispatcher
:members:
:undoc-members:
:show-inheritance:
tensorpack.callbacks.dump module
--------------------------------
.. automodule:: tensorpack.callbacks.dump
:members:
:undoc-members:
:show-inheritance:
tensorpack.callbacks.graph module
---------------------------------
.. automodule:: tensorpack.callbacks.graph
:members:
:undoc-members:
:show-inheritance:
tensorpack.callbacks.group module
---------------------------------
.. automodule:: tensorpack.callbacks.group
:members:
:undoc-members:
:show-inheritance:
tensorpack.callbacks.inference module
-------------------------------------
.. automodule:: tensorpack.callbacks.inference
:members:
:undoc-members:
:show-inheritance:
tensorpack.callbacks.param module
---------------------------------
.. automodule:: tensorpack.callbacks.param
:members:
:undoc-members:
:show-inheritance:
tensorpack.callbacks.saver module
---------------------------------
.. automodule:: tensorpack.callbacks.saver
:members:
:undoc-members:
:show-inheritance:
tensorpack.callbacks.stats module
---------------------------------
.. automodule:: tensorpack.callbacks.stats
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: tensorpack.callbacks
:members:
:undoc-members:
...
...
docs/modules/tensorpack.dataflow.dataset.rst
View file @
c3f5307e
tensorpack.dataflow.dataset package
===================================
Submodules
----------
tensorpack.dataflow.dataset.bsds500 module
------------------------------------------
.. automodule:: tensorpack.dataflow.dataset.bsds500
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.dataset.cifar module
----------------------------------------
.. automodule:: tensorpack.dataflow.dataset.cifar
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.dataset.ilsvrc module
-----------------------------------------
.. automodule:: tensorpack.dataflow.dataset.ilsvrc
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.dataset.mnist module
----------------------------------------
.. automodule:: tensorpack.dataflow.dataset.mnist
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.dataset.ptb module
--------------------------------------
.. automodule:: tensorpack.dataflow.dataset.ptb
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.dataset.svhn module
---------------------------------------
.. automodule:: tensorpack.dataflow.dataset.svhn
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.dataset.visualqa module
-------------------------------------------
.. automodule:: tensorpack.dataflow.dataset.visualqa
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: tensorpack.dataflow.dataset
:members:
:undoc-members:
...
...
docs/modules/tensorpack.dataflow.imgaug.rst
View file @
c3f5307e
tensorpack.dataflow.imgaug package
==================================
Submodules
----------
tensorpack.dataflow.imgaug.base module
--------------------------------------
.. automodule:: tensorpack.dataflow.imgaug.base
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.imgaug.crop module
--------------------------------------
.. automodule:: tensorpack.dataflow.imgaug.crop
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.imgaug.deform module
----------------------------------------
.. automodule:: tensorpack.dataflow.imgaug.deform
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.imgaug.geometry module
------------------------------------------
.. automodule:: tensorpack.dataflow.imgaug.geometry
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.imgaug.imgproc module
-----------------------------------------
.. automodule:: tensorpack.dataflow.imgaug.imgproc
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.imgaug.meta module
--------------------------------------
.. automodule:: tensorpack.dataflow.imgaug.meta
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.imgaug.noise module
---------------------------------------
.. automodule:: tensorpack.dataflow.imgaug.noise
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.imgaug.noname module
----------------------------------------
.. automodule:: tensorpack.dataflow.imgaug.noname
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.imgaug.paste module
---------------------------------------
.. automodule:: tensorpack.dataflow.imgaug.paste
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: tensorpack.dataflow.imgaug
:members:
:undoc-members:
...
...
docs/modules/tensorpack.dataflow.rst
View file @
c3f5307e
...
...
@@ -9,25 +9,6 @@ Subpackages
tensorpack.dataflow.dataset
tensorpack.dataflow.imgaug
Submodules
----------
tensorpack.dataflow.base module
-------------------------------
.. automodule:: tensorpack.dataflow.base
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.common module
---------------------------------
.. automodule:: tensorpack.dataflow.common
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.dftools module
----------------------------------
...
...
@@ -36,55 +17,6 @@ tensorpack.dataflow.dftools module
:undoc-members:
:show-inheritance:
tensorpack.dataflow.format module
---------------------------------
.. automodule:: tensorpack.dataflow.format
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.image module
--------------------------------
.. automodule:: tensorpack.dataflow.image
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.prefetch module
-----------------------------------
.. automodule:: tensorpack.dataflow.prefetch
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.raw module
------------------------------
.. automodule:: tensorpack.dataflow.raw
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.remote module
---------------------------------
.. automodule:: tensorpack.dataflow.remote
:members:
:undoc-members:
:show-inheritance:
tensorpack.dataflow.tf_func module
----------------------------------
.. automodule:: tensorpack.dataflow.tf_func
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
...
...
docs/modules/tensorpack.models.rst
View file @
c3f5307e
tensorpack.models package
=========================
Submodules
----------
tensorpack.models.batch_norm module
-----------------------------------
.. automodule:: tensorpack.models.batch_norm
:members:
:undoc-members:
:show-inheritance:
tensorpack.models.conv2d module
-------------------------------
.. automodule:: tensorpack.models.conv2d
:members:
:undoc-members:
:show-inheritance:
tensorpack.models.fc module
---------------------------
.. automodule:: tensorpack.models.fc
:members:
:undoc-members:
:show-inheritance:
tensorpack.models.image_sample module
-------------------------------------
.. automodule:: tensorpack.models.image_sample
:members:
:undoc-members:
:show-inheritance:
tensorpack.models.model_desc module
-----------------------------------
.. automodule:: tensorpack.models.model_desc
:members:
:undoc-members:
:show-inheritance:
tensorpack.models.nonlin module
-------------------------------
.. automodule:: tensorpack.models.nonlin
:members:
:undoc-members:
:show-inheritance:
tensorpack.models.pool module
-----------------------------
.. automodule:: tensorpack.models.pool
:members:
:undoc-members:
:show-inheritance:
tensorpack.models.regularize module
-----------------------------------
.. automodule:: tensorpack.models.regularize
:members:
:undoc-members:
:show-inheritance:
tensorpack.models.shapes module
-------------------------------
.. automodule:: tensorpack.models.shapes
:members:
:undoc-members:
:show-inheritance:
tensorpack.models.softmax module
--------------------------------
.. automodule:: tensorpack.models.softmax
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: tensorpack.models
:members:
:undoc-members:
...
...
docs/modules/tensorpack.predict.rst
View file @
c3f5307e
tensorpack.predict package
==========================
Submodules
----------
tensorpack.predict.base module
------------------------------
.. automodule:: tensorpack.predict.base
:members:
:undoc-members:
:show-inheritance:
tensorpack.predict.common module
--------------------------------
.. automodule:: tensorpack.predict.common
:members:
:undoc-members:
:show-inheritance:
tensorpack.predict.concurrency module
-------------------------------------
.. automodule:: tensorpack.predict.concurrency
:members:
:undoc-members:
:show-inheritance:
tensorpack.predict.dataset module
---------------------------------
.. automodule:: tensorpack.predict.dataset
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: tensorpack.predict
:members:
:undoc-members:
...
...
docs/modules/tensorpack.rst
deleted
100644 → 0
View file @
9c42c84f
tensorpack package
==================
Subpackages
-----------
.. toctree::
tensorpack.RL
tensorpack.callbacks
tensorpack.dataflow
tensorpack.models
tensorpack.predict
tensorpack.tfutils
tensorpack.train
tensorpack.utils
Module contents
---------------
.. automodule:: tensorpack
:members:
:undoc-members:
:show-inheritance:
docs/modules/tensorpack.tfutils.rst
View file @
c3f5307e
tensorpack.tfutils package
==========================
Submodules
----------
tensorpack.tfutils.argscope module
----------------------------------
.. automodule:: tensorpack.tfutils.argscope
:members:
:undoc-members:
:show-inheritance:
tensorpack.tfutils.common module
--------------------------------
.. automodule:: tensorpack.tfutils.common
:members:
:undoc-members:
:show-inheritance:
tensorpack.tfutils.gradproc module
----------------------------------
.. automodule:: tensorpack.tfutils.gradproc
:members:
:undoc-members:
:show-inheritance:
tensorpack.tfutils.modelutils module
------------------------------------
...
...
@@ -36,14 +9,6 @@ tensorpack.tfutils.modelutils module
:undoc-members:
:show-inheritance:
tensorpack.tfutils.sessinit module
----------------------------------
.. automodule:: tensorpack.tfutils.sessinit
:members:
:undoc-members:
:show-inheritance:
tensorpack.tfutils.summary module
---------------------------------
...
...
@@ -60,14 +25,6 @@ tensorpack.tfutils.symbolic_functions module
:undoc-members:
:show-inheritance:
tensorpack.tfutils.tower module
-------------------------------
.. automodule:: tensorpack.tfutils.tower
:members:
:undoc-members:
:show-inheritance:
tensorpack.tfutils.varmanip module
----------------------------------
...
...
docs/modules/tensorpack.train.rst
View file @
c3f5307e
tensorpack.train package
========================
Submodules
----------
tensorpack.train.base module
----------------------------
.. automodule:: tensorpack.train.base
:members:
:undoc-members:
:show-inheritance:
tensorpack.train.config module
------------------------------
.. automodule:: tensorpack.train.config
:members:
:undoc-members:
:show-inheritance:
tensorpack.train.input_data module
----------------------------------
.. automodule:: tensorpack.train.input_data
:members:
:undoc-members:
:show-inheritance:
tensorpack.train.multigpu module
--------------------------------
.. automodule:: tensorpack.train.multigpu
:members:
:undoc-members:
:show-inheritance:
tensorpack.train.queue module
-----------------------------
.. automodule:: tensorpack.train.queue
:members:
:undoc-members:
:show-inheritance:
tensorpack.train.trainer module
-------------------------------
.. automodule:: tensorpack.train.trainer
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: tensorpack.train
:members:
:undoc-members:
...
...
docs/modules/tensorpack.utils.rst
View file @
c3f5307e
tensorpack.utils package
========================
Submodules
----------
tensorpack.utils.argtools module
--------------------------------
...
...
@@ -52,14 +49,6 @@ tensorpack.utils.globvars module
:undoc-members:
:show-inheritance:
tensorpack.utils.gpu module
---------------------------
.. automodule:: tensorpack.utils.gpu
:members:
:undoc-members:
:show-inheritance:
tensorpack.utils.loadcaffe module
---------------------------------
...
...
@@ -84,13 +73,6 @@ tensorpack.utils.lut module
:undoc-members:
:show-inheritance:
tensorpack.utils.naming module
------------------------------
.. automodule:: tensorpack.utils.naming
:members:
:undoc-members:
:show-inheritance:
tensorpack.utils.rect module
----------------------------
...
...
@@ -124,14 +106,6 @@ tensorpack.utils.timer module
:undoc-members:
:show-inheritance:
tensorpack.utils.utils module
-----------------------------
.. automodule:: tensorpack.utils.utils
:members:
:undoc-members:
:show-inheritance:
tensorpack.utils.viz module
---------------------------
...
...
docs/update.sh
View file @
c3f5307e
...
...
@@ -3,5 +3,5 @@
# Author: Yuxin Wu <ppwwyyxxc@gmail.com>
make clean
sphinx-apidoc
-o
modules ../tensorpack
-f
-d
10
#
sphinx-apidoc -o modules ../tensorpack -f -d 10
make html
tensorpack/RL/__init__.py
View file @
c3f5307e
...
...
@@ -7,12 +7,14 @@ import importlib
import
os
import
os.path
__all__
=
[]
def
_global_import
(
name
):
p
=
__import__
(
name
,
globals
(),
locals
(),
level
=
1
)
lst
=
p
.
__all__
if
'__all__'
in
dir
(
p
)
else
dir
(
p
)
del
globals
()[
name
]
for
k
in
lst
:
globals
()[
k
]
=
p
.
__dict__
[
k
]
__all__
.
append
(
k
)
for
_
,
module_name
,
_
in
walk_packages
(
[
os
.
path
.
dirname
(
__file__
)]):
...
...
tensorpack/RL/common.py
View file @
c3f5307e
...
...
@@ -19,9 +19,9 @@ class PreventStuckPlayer(ProxyPlayer):
# TODO hash the state as well?
def
__init__
(
self
,
player
,
nr_repeat
,
action
):
"""
It does auto-reset, but doesn't auto-restart the underlying player.
:param nr_repeat: trigger the 'action' after this many of repeated action
:param action: the action to be triggered to get out of stuck
Does auto-reset, but doesn't auto-restart the underlying player.
"""
super
(
PreventStuckPlayer
,
self
)
.
__init__
(
player
)
self
.
act_que
=
deque
(
maxlen
=
nr_repeat
)
...
...
tensorpack/dataflow/__init__.py
View file @
c3f5307e
...
...
@@ -10,12 +10,15 @@ import os.path
from
.
import
dataset
from
.
import
imgaug
__all__
=
[]
def
_global_import
(
name
):
p
=
__import__
(
name
,
globals
(),
locals
(),
level
=
1
)
lst
=
p
.
__all__
if
'__all__'
in
dir
(
p
)
else
dir
(
p
)
del
globals
()[
name
]
for
k
in
lst
:
globals
()[
k
]
=
p
.
__dict__
[
k
]
__all__
.
append
(
k
)
__SKIP
=
[
'dftools'
,
'dataset'
,
'imgaug'
]
for
_
,
module_name
,
_
in
walk_packages
(
...
...
tensorpack/dataflow/dataset/__init__.py
View file @
c3f5307e
...
...
@@ -6,11 +6,14 @@ from pkgutil import walk_packages
import
os
import
os.path
__all__
=
[]
def
global_import
(
name
):
p
=
__import__
(
name
,
globals
(),
locals
(),
level
=
1
)
lst
=
p
.
__all__
if
'__all__'
in
dir
(
p
)
else
dir
(
p
)
del
globals
()[
name
]
for
k
in
lst
:
globals
()[
k
]
=
p
.
__dict__
[
k
]
__all__
.
append
(
k
)
for
_
,
module_name
,
_
in
walk_packages
(
[
os
.
path
.
dirname
(
__file__
)]):
...
...
tensorpack/dataflow/imgaug/__init__.py
View file @
c3f5307e
...
...
@@ -13,6 +13,7 @@ def global_import(name):
del
globals
()[
name
]
for
k
in
lst
:
globals
()[
k
]
=
p
.
__dict__
[
k
]
__all__
.
append
(
k
)
for
_
,
module_name
,
_
in
walk_packages
(
[
os
.
path
.
dirname
(
__file__
)]):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment