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
75ff348e
Commit
75ff348e
authored
Apr 20, 2017
by
Yuxin Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use better pre-commit hooks and fix lint.
parent
a7321f06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
examples/GAN/BEGAN.py
examples/GAN/BEGAN.py
+1
-1
tests/dev/git-hooks/pre-commit
tests/dev/git-hooks/pre-commit
+8
-2
No files found.
examples/GAN/BEGAN.py
View file @
75ff348e
...
...
@@ -92,7 +92,6 @@ class Model(GANModelDesc):
x
=
tf
.
cast
(
x
,
tf
.
uint8
)
tf
.
summary
.
image
(
name
,
x
,
max_outputs
=
30
)
with
argscope
([
Conv2D
,
FullyConnected
],
W_init
=
tf
.
truncated_normal_initializer
(
stddev
=
0.02
)):
with
tf
.
variable_scope
(
'gen'
):
...
...
@@ -150,6 +149,7 @@ def get_config():
max_epoch
=
400
,
)
if
__name__
==
'__main__'
:
args
=
DCGAN
.
get_args
()
if
args
.
sample
:
...
...
tests/dev/git-hooks/pre-commit
View file @
75ff348e
#!/bin/
sh
#!/bin/
bash -e
flake8
.
cd
examples
&&
flake8
.
cd
examples
GIT_ARG
=
"--git-dir ../.git --work-tree .."
# find out modified python files
MOD
=
$(
git
$GIT_ARG
status
-s
|
grep
-E
'\.py$'
|
grep
-E
'^\b+M\b+'
|
cut
-c
4-
)
flake8
$MOD
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