Created by: sriniiyer
t is a tensor, and t in set() does not work. The correct way is to use t.item().