localmt={__index=function(table,key)error("nn."..key.." is only supported for Float or Double Tensors.")end}localtensors={torch.ByteTensor,torch.CharTensor,torch.ShortTensor,torch.IntTensor,torch.LongTensor,}for_,tinipairs(tensors)dot.nn={}setmetatable(t.nn,mt)end