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
94a01039
You need to sign in or sign up before continuing.
Commit
94a01039
authored
Aug 08, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide utils.naming.* from automatic import
parent
a4ae0f2d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
18 deletions
+1
-18
tensorpack/models/common.py
tensorpack/models/common.py
+1
-1
tensorpack/tfutils/common.py
tensorpack/tfutils/common.py
+0
-9
tensorpack/utils/__init__.py
tensorpack/utils/__init__.py
+0
-1
tensorpack/utils/naming.py
tensorpack/utils/naming.py
+0
-7
No files found.
tensorpack/models/common.py
View file @
94a01039
...
...
@@ -16,7 +16,7 @@ from ..utils import logger
_LAYER_LOGGED
=
set
()
_LAYER_REGISTERED
=
{}
__all__
=
[
'layer_register'
,
'VariableHolder'
]
__all__
=
[
'layer_register'
]
class
VariableHolder
(
object
):
...
...
tensorpack/tfutils/common.py
View file @
94a01039
...
...
@@ -80,15 +80,6 @@ def get_global_step_value():
get_global_step_var
())
# @memoized
# def get_local_step_var():
# try:
# return tf.get_default_graph().get_tensor_by_name(LOCAL_STEP_VAR_NAME)
# except KeyError:
# logger.warn("get_local_step_var() is only available to use in callbacks!")
# raise
def
get_op_tensor_name
(
name
):
"""
Will automatically determine if ``name`` is a tensor name (ends with ':x')
...
...
tensorpack/utils/__init__.py
View file @
94a01039
...
...
@@ -22,7 +22,6 @@ def _global_import(name):
_TO_IMPORT
=
set
([
'naming'
,
'utils'
,
])
...
...
tensorpack/utils/naming.py
View file @
94a01039
...
...
@@ -7,16 +7,9 @@ import tensorflow as tf
GLOBAL_STEP_INCR_OP_NAME
=
'global_step_incr'
GLOBAL_STEP_INCR_VAR_NAME
=
'global_step_incr:0'
LOCAL_STEP_OP_NAME
=
'local_step'
LOCAL_STEP_VAR_NAME
=
'local_step:0'
# extra variables to summarize during training in a moving-average way
MOVING_SUMMARY_OPS_KEY
=
'MOVING_SUMMARY_OPS'
SUMMARY_BACKUP_KEYS
=
[
tf
.
GraphKeys
.
SUMMARIES
,
MOVING_SUMMARY_OPS_KEY
]
TOWER_FREEZE_KEYS
=
SUMMARY_BACKUP_KEYS
# export all upper case variables
all_local_names
=
locals
()
.
keys
()
__all__
=
[
x
for
x
in
all_local_names
if
x
.
isupper
()]
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