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
93cee9d4
Commit
93cee9d4
authored
May 18, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
global step may not be global (fix #273)
parent
acec5ac2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
tensorpack/tfutils/common.py
tensorpack/tfutils/common.py
+0
-2
tensorpack/utils/argtools.py
tensorpack/utils/argtools.py
+1
-1
No files found.
tensorpack/tfutils/common.py
View file @
93cee9d4
...
@@ -9,7 +9,6 @@ from six.moves import map
...
@@ -9,7 +9,6 @@ from six.moves import map
from
..utils.naming
import
(
from
..utils.naming
import
(
GLOBAL_STEP_VAR_NAME
,
GLOBAL_STEP_VAR_NAME
,
GLOBAL_STEP_OP_NAME
)
GLOBAL_STEP_OP_NAME
)
from
..utils.argtools
import
memoized
__all__
=
[
'get_default_sess_config'
,
__all__
=
[
'get_default_sess_config'
,
...
@@ -52,7 +51,6 @@ def get_default_sess_config(mem_fraction=0.99):
...
@@ -52,7 +51,6 @@ def get_default_sess_config(mem_fraction=0.99):
return
conf
return
conf
@
memoized
def
get_global_step_var
():
def
get_global_step_var
():
"""
"""
Returns:
Returns:
...
...
tensorpack/utils/argtools.py
View file @
93cee9d4
...
@@ -35,7 +35,7 @@ def map_arg(**maps):
...
@@ -35,7 +35,7 @@ def map_arg(**maps):
memoized
=
functools
.
lru_cache
(
maxsize
=
None
)
memoized
=
functools
.
lru_cache
(
maxsize
=
None
)
"""
Equivalent
to :func:`functools.lru_cache` """
"""
Alias
to :func:`functools.lru_cache` """
_MEMOIZED_NOARGS
=
{}
_MEMOIZED_NOARGS
=
{}
...
...
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