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
4efa7108
Commit
4efa7108
authored
Jan 07, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix import #92
parent
e0190688
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
tensorpack/tfutils/__init__.py
tensorpack/tfutils/__init__.py
+3
-1
tensorpack/utils/__init__.py
tensorpack/utils/__init__.py
+2
-1
No files found.
tensorpack/tfutils/__init__.py
View file @
4efa7108
...
@@ -33,5 +33,7 @@ for _, module_name, _ in walk_packages(
...
@@ -33,5 +33,7 @@ for _, module_name, _ in walk_packages(
if
module_name
.
startswith
(
'_'
):
if
module_name
.
startswith
(
'_'
):
continue
continue
if
module_name
in
_TO_IMPORT
:
if
module_name
in
_TO_IMPORT
:
_global_import
(
module_name
)
_global_import
(
module_name
)
# import the content to tfutils.*
else
:
__all__
.
append
(
module_name
)
# import the module separately
__all__
.
extend
([
'sessinit'
,
'gradproc'
])
__all__
.
extend
([
'sessinit'
,
'gradproc'
])
tensorpack/utils/__init__.py
View file @
4efa7108
...
@@ -37,4 +37,5 @@ for _, module_name, _ in walk_packages(
...
@@ -37,4 +37,5 @@ for _, module_name, _ in walk_packages(
continue
continue
if
module_name
in
_TO_IMPORT
:
if
module_name
in
_TO_IMPORT
:
_global_import
(
module_name
)
_global_import
(
module_name
)
else
:
__all__
.
append
(
module_name
)
__all__
.
append
(
module_name
)
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