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
bbac5cf1
Commit
bbac5cf1
authored
Jul 09, 2019
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests in python 2
parent
d200d632
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
tensorpack/tfutils/unit_tests.py
tensorpack/tfutils/unit_tests.py
+2
-1
No files found.
tensorpack/tfutils/unit_tests.py
View file @
bbac5cf1
#-*- coding: utf-8 -*-
#File:
import
six
import
unittest
import
tensorflow
as
tf
...
...
@@ -21,6 +21,7 @@ class ScopeUtilsTest(unittest.TestCase):
with
self
.
assertRaises
(
AssertionError
):
self
.
_f
()
# name conflict
@
unittest
.
skipIf
(
six
.
PY2
,
"assertLogs not supported in Python 2"
)
def
test_under_name_scope_warning
(
self
):
x
=
tf
.
placeholder
(
tf
.
float32
,
[
3
])
tf
.
nn
.
relu
(
x
,
name
=
's'
)
...
...
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