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
1ce585be
Commit
1ce585be
authored
Feb 08, 2018
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to fix build
parent
e1a879d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
tensorpack/callbacks/monitor.py
tensorpack/callbacks/monitor.py
+1
-1
tests/test_infogan.py
tests/test_infogan.py
+4
-0
No files found.
tensorpack/callbacks/monitor.py
View file @
1ce585be
...
@@ -318,7 +318,7 @@ class ScalarPrinter(TrainingMonitor):
...
@@ -318,7 +318,7 @@ class ScalarPrinter(TrainingMonitor):
def
compile_regex
(
rs
):
def
compile_regex
(
rs
):
if
rs
is
None
:
if
rs
is
None
:
return
None
return
None
rs
=
set
([
r
if
isinstance
(
r
,
re
.
RegexObject
)
else
r
e
.
compile
(
r
)
for
r
in
rs
])
rs
=
set
([
re
.
compile
(
r
)
for
r
in
rs
])
return
rs
return
rs
self
.
_whitelist
=
compile_regex
(
whitelist
)
self
.
_whitelist
=
compile_regex
(
whitelist
)
...
...
tests/test_infogan.py
View file @
1ce585be
from
case_script
import
TestPythonScript
from
case_script
import
TestPythonScript
from
tensorpack.tfutils.common
import
get_tf_version_number
class
InfoGANTest
(
TestPythonScript
):
class
InfoGANTest
(
TestPythonScript
):
...
@@ -8,4 +10,6 @@ class InfoGANTest(TestPythonScript):
...
@@ -8,4 +10,6 @@ class InfoGANTest(TestPythonScript):
return
'../examples/GAN/InfoGAN-mnist.py'
return
'../examples/GAN/InfoGAN-mnist.py'
def
test
(
self
):
def
test
(
self
):
if
get_tf_version_number
()
<
1.4
:
return
True
# requires leaky_relu
self
.
assertSurvive
(
self
.
script
,
args
=
None
)
self
.
assertSurvive
(
self
.
script
,
args
=
None
)
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