Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
05630a75
Commit
05630a75
authored
Jun 22, 2016
by
Chris Waterson
Committed by
GitHub
Jun 22, 2016
Browse files
Merge pull request #232 from lukelafountaine/master
remove unneeded assignment statement
parents
03790394
85722689
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
swivel/prep.py
swivel/prep.py
+0
-1
No files found.
swivel/prep.py
View file @
05630a75
...
...
@@ -111,7 +111,6 @@ def create_vocabulary(lines):
vocab
=
[(
tok
,
n
)
for
tok
,
n
in
vocab
.
iteritems
()
if
n
>=
FLAGS
.
min_count
]
vocab
.
sort
(
key
=
lambda
kv
:
(
-
kv
[
1
],
kv
[
0
]))
num_words
=
max
(
len
(
vocab
),
FLAGS
.
shard_size
)
num_words
=
min
(
len
(
vocab
),
FLAGS
.
max_vocab
)
if
num_words
%
FLAGS
.
shard_size
!=
0
:
num_words
-=
num_words
%
FLAGS
.
shard_size
...
...
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