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
65317b6b
Commit
65317b6b
authored
Jun 26, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove `clear_collection`.
parent
f9356946
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
12 deletions
+0
-12
tensorpack/tfutils/collection.py
tensorpack/tfutils/collection.py
+0
-12
No files found.
tensorpack/tfutils/collection.py
View file @
65317b6b
...
@@ -10,7 +10,6 @@ from contextlib import contextmanager
...
@@ -10,7 +10,6 @@ from contextlib import contextmanager
__all__
=
[
'backup_collection'
,
__all__
=
[
'backup_collection'
,
'restore_collection'
,
'restore_collection'
,
'clear_collection'
,
'freeze_collection'
]
'freeze_collection'
]
...
@@ -40,17 +39,6 @@ def restore_collection(backup):
...
@@ -40,17 +39,6 @@ def restore_collection(backup):
tf
.
get_collection_ref
(
k
)
.
extend
(
v
)
tf
.
get_collection_ref
(
k
)
.
extend
(
v
)
def
clear_collection
(
keys
):
"""
Clear some collections.
Args:
keys(list): list of collection keys.
"""
for
k
in
keys
:
del
tf
.
get_collection_ref
(
k
)[:]
@
contextmanager
@
contextmanager
def
freeze_collection
(
keys
):
def
freeze_collection
(
keys
):
"""
"""
...
...
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