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
b5702366
Commit
b5702366
authored
Feb 21, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix missing import of 2nd-level modules in tfutils
parent
0012fa2b
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
5 deletions
+10
-5
examples/GAN/InfoGAN-mnist.py
examples/GAN/InfoGAN-mnist.py
+1
-1
examples/HED/hed.py
examples/HED/hed.py
+1
-1
examples/Saliency/CAM-resnet.py
examples/Saliency/CAM-resnet.py
+1
-1
examples/SpatialTransformer/mnist-addition.py
examples/SpatialTransformer/mnist-addition.py
+1
-1
tensorpack/tfutils/__init__.py
tensorpack/tfutils/__init__.py
+6
-1
No files found.
examples/GAN/InfoGAN-mnist.py
View file @
b5702366
...
@@ -13,7 +13,7 @@ import argparse
...
@@ -13,7 +13,7 @@ import argparse
from
tensorpack
import
*
from
tensorpack
import
*
from
tensorpack.utils
import
viz
from
tensorpack.utils
import
viz
from
tensorpack.tfutils.scope_utils
import
auto_reuse_variable_scope
,
under_name_scope
from
tensorpack.tfutils.scope_utils
import
auto_reuse_variable_scope
,
under_name_scope
from
tensorpack.tfutils
import
optimizer
,
summary
from
tensorpack.tfutils
import
optimizer
,
summary
,
gradproc
from
tensorpack.dataflow
import
dataset
from
tensorpack.dataflow
import
dataset
from
GAN
import
GANTrainer
,
GANModelDesc
from
GAN
import
GANTrainer
,
GANModelDesc
...
...
examples/HED/hed.py
View file @
b5702366
...
@@ -13,7 +13,7 @@ import os
...
@@ -13,7 +13,7 @@ import os
from
tensorpack
import
*
from
tensorpack
import
*
from
tensorpack.dataflow
import
dataset
from
tensorpack.dataflow
import
dataset
from
tensorpack.utils.gpu
import
get_nr_gpu
from
tensorpack.utils.gpu
import
get_nr_gpu
from
tensorpack.tfutils
import
optimizer
from
tensorpack.tfutils
import
optimizer
,
gradproc
from
tensorpack.tfutils.summary
import
add_moving_summary
,
add_param_summary
from
tensorpack.tfutils.summary
import
add_moving_summary
,
add_param_summary
...
...
examples/Saliency/CAM-resnet.py
View file @
b5702366
...
@@ -13,7 +13,7 @@ import multiprocessing
...
@@ -13,7 +13,7 @@ import multiprocessing
import
tensorflow
as
tf
import
tensorflow
as
tf
from
tensorpack
import
*
from
tensorpack
import
*
from
tensorpack.dataflow
import
dataset
from
tensorpack.dataflow
import
dataset
from
tensorpack.tfutils
import
optimizer
from
tensorpack.tfutils
import
optimizer
,
gradproc
from
tensorpack.tfutils.symbolic_functions
import
*
from
tensorpack.tfutils.symbolic_functions
import
*
from
tensorpack.tfutils.summary
import
*
from
tensorpack.tfutils.summary
import
*
from
tensorpack.utils.gpu
import
get_nr_gpu
from
tensorpack.utils.gpu
import
get_nr_gpu
...
...
examples/SpatialTransformer/mnist-addition.py
View file @
b5702366
...
@@ -12,7 +12,7 @@ import argparse
...
@@ -12,7 +12,7 @@ import argparse
from
tensorpack
import
*
from
tensorpack
import
*
from
tensorpack.dataflow
import
dataset
from
tensorpack.dataflow
import
dataset
from
tensorpack.tfutils
import
sesscreate
,
optimizer
,
summary
from
tensorpack.tfutils
import
sesscreate
,
optimizer
,
summary
,
gradproc
IMAGE_SIZE
=
42
IMAGE_SIZE
=
42
WARP_TARGET_SIZE
=
28
WARP_TARGET_SIZE
=
28
...
...
tensorpack/tfutils/__init__.py
View file @
b5702366
...
@@ -31,11 +31,16 @@ _TO_IMPORT = frozenset([
...
@@ -31,11 +31,16 @@ _TO_IMPORT = frozenset([
for
module_name
in
_TO_IMPORT
:
for
module_name
in
_TO_IMPORT
:
_global_import
(
module_name
)
_global_import
(
module_name
)
"""
"""
Here the goal is to keep submodule names (sesscreate, varmanip, etc) out of __all__,
TODO remove this line in the future.
Better to keep submodule names (sesscreate, varmanip, etc) out of __all__,
so that these names will be invisible under `tensorpack.` namespace.
so that these names will be invisible under `tensorpack.` namespace.
To use these utilities, users are expected to import them explicitly, e.g.:
To use these utilities, users are expected to import them explicitly, e.g.:
import tensorpack.tfutils.symbolic_functions as symbf
import tensorpack.tfutils.symbolic_functions as symbf
"""
"""
__all__
.
extend
([
'sessinit'
,
'summary'
,
'optimizer'
,
'sesscreate'
,
'gradproc'
,
'varreplace'
,
'symbolic_functions'
,
'distributed'
,
'tower'
])
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