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
OpenDAS
vision
Commits
cf534fda
Unverified
Commit
cf534fda
authored
Jul 10, 2020
by
Brian Vaughan
Committed by
GitHub
Jul 10, 2020
Browse files
variable name should match that of tested method (#2456)
parent
892d0efb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
test/test_functional_tensor.py
test/test_functional_tensor.py
+2
-2
No files found.
test/test_functional_tensor.py
View file @
cf534fda
...
...
@@ -328,8 +328,8 @@ class Tester(unittest.TestCase):
script_size
=
[
size
,
]
else
:
script_size
=
size
pad_tensor_scrip
t
=
script_fn
(
tensor
,
size
=
script_size
,
interpolation
=
interpolation
)
self
.
assertTrue
(
resized_tensor
.
equal
(
pad_tensor_scrip
t
),
msg
=
"{}, {}"
.
format
(
size
,
interpolation
))
resize_resul
t
=
script_fn
(
tensor
,
size
=
script_size
,
interpolation
=
interpolation
)
self
.
assertTrue
(
resized_tensor
.
equal
(
resize_resul
t
),
msg
=
"{}, {}"
.
format
(
size
,
interpolation
))
def
test_resized_crop
(
self
):
# test values of F.resized_crop in several cases:
...
...
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