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
1e4dee8b
Commit
1e4dee8b
authored
Jun 06, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
silent TF1.x warnings
parent
ed6cc793
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
tensorpack/libinfo.py
tensorpack/libinfo.py
+14
-0
No files found.
tensorpack/libinfo.py
View file @
1e4dee8b
...
@@ -65,6 +65,20 @@ else:
...
@@ -65,6 +65,20 @@ else:
except
Exception
:
except
Exception
:
pass
pass
# silence the massive deprecation warnings in TF 1.13+
if
(
int
(
_version
[
0
]),
int
(
_version
[
1
]))
>=
(
1
,
13
):
try
:
from
tensorflow.python.util.deprecation
import
silence
except
Exception
:
pass
else
:
silence
()
.
__enter__
()
try
:
from
tensorflow.python.util
import
deprecation_wrapper
deprecation_wrapper
.
_PER_MODULE_WARNING_LIMIT
=
0
except
Exception
:
pass
# Monkey-patch tf.test.is_gpu_available to avoid side effects:
# Monkey-patch tf.test.is_gpu_available to avoid side effects:
# https://github.com/tensorflow/tensorflow/issues/26460
# https://github.com/tensorflow/tensorflow/issues/26460
try
:
try
:
...
...
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