Skip to content

Commit eeb2aa0

Browse files
committed
convert to double before anything
1 parent 112d867 commit eeb2aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hist.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function gnuplot.histc(...)
9393
local raw = args[5] or false
9494

9595
-- compute histogram
96-
local hist = torch.histc(tensor,bins,min,max)
96+
local hist = torch.histc(tensor:double(),bins,min,max)
9797

9898
-- return raw histogram (no extra info)
9999
if raw then return hist end

0 commit comments

Comments
 (0)