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
c0997f44
Commit
c0997f44
authored
Jan 13, 2017
by
Jun Kim
Committed by
GitHub
Jan 13, 2017
Browse files
Make comment formal
parent
306fad2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
im2txt/im2txt/inference_utils/caption_generator.py
im2txt/im2txt/inference_utils/caption_generator.py
+2
-2
No files found.
im2txt/im2txt/inference_utils/caption_generator.py
View file @
c0997f44
...
...
@@ -55,12 +55,12 @@ class Caption(object):
else
:
return
1
#
f
or
versi
on 3 compatibility (__cmp__ is deprecated)
#
F
or
Pyth
on 3 compatibility (__cmp__ is deprecated)
.
def
__lt__
(
self
,
other
):
assert
isinstance
(
other
,
Caption
)
return
self
.
score
<
other
.
score
#
a
lso for
versi
on 3 compatibility
#
A
lso for
Pyth
on 3 compatibility
.
def
__eq__
(
self
,
other
):
assert
isinstance
(
other
,
Caption
)
return
self
.
score
==
other
.
score
...
...
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