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
4db0398a
Commit
4db0398a
authored
May 04, 2018
by
vfdev
Committed by
Soumith Chintala
May 04, 2018
Browse files
Update test_utils.py (#486)
Remove test with variables
parent
f87a896f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
test/test_utils.py
test/test_utils.py
+0
-8
No files found.
test/test_utils.py
View file @
4db0398a
...
@@ -18,14 +18,6 @@ class Tester(unittest.TestCase):
...
@@ -18,14 +18,6 @@ class Tester(unittest.TestCase):
utils
.
make_grid
(
t
,
normalize
=
True
,
scale_each
=
True
)
utils
.
make_grid
(
t
,
normalize
=
True
,
scale_each
=
True
)
assert
torch
.
equal
(
t
,
t_clone
),
'make_grid modified tensor in-place'
assert
torch
.
equal
(
t
,
t_clone
),
'make_grid modified tensor in-place'
def
test_make_grid_raises_with_variable
(
self
):
t
=
torch
.
autograd
.
Variable
(
torch
.
rand
(
3
,
10
,
10
))
with
self
.
assertRaises
(
TypeError
):
utils
.
make_grid
(
t
)
with
self
.
assertRaises
(
TypeError
):
utils
.
make_grid
([
t
,
t
,
t
,
t
])
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
()
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