Unverified Commit 7bda0e85 authored by Francisco Massa's avatar Francisco Massa Committed by GitHub
Browse files

Backward compat fix for Pytorch < 0.4 (#472)

parent 1a6038ea
......@@ -58,7 +58,7 @@ def make_grid(tensor, nrow=8, padding=2,
if range is not None:
norm_ip(t, range[0], range[1])
else:
norm_ip(t, t.min().item(), t.max().item())
norm_ip(t, float(t.min()), float(t.max()))
if scale_each is True:
for t in tensor: # loop over mini-batch dimension
......
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