Unverified Commit cf534fda authored by Brian Vaughan's avatar Brian Vaughan Committed by GitHub
Browse files

variable name should match that of tested method (#2456)

parent 892d0efb
...@@ -328,8 +328,8 @@ class Tester(unittest.TestCase): ...@@ -328,8 +328,8 @@ class Tester(unittest.TestCase):
script_size = [size, ] script_size = [size, ]
else: else:
script_size = size script_size = size
pad_tensor_script = script_fn(tensor, size=script_size, interpolation=interpolation) resize_result = script_fn(tensor, size=script_size, interpolation=interpolation)
self.assertTrue(resized_tensor.equal(pad_tensor_script), msg="{}, {}".format(size, interpolation)) self.assertTrue(resized_tensor.equal(resize_result), msg="{}, {}".format(size, interpolation))
def test_resized_crop(self): def test_resized_crop(self):
# test values of F.resized_crop in several cases: # test values of F.resized_crop in several cases:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment