andresy/torch — Issue #4: String output of NaN values
Author: schaul
Created: 2011-11-15 04:09:35+00:00
State: open

A tensor containing not-a-number values cannot be printed. For example

print(lab.zeros(1)/0)

crashes. On the other hand

print((lab.zeros(1)/0)[1])

works fine, and prints out

-nan