These are chat archives for torch/torch7
[Rules] Dont post large blobs of text / code. Dont post install issues, use our google groups for them. Questions of the format: "I ran this code", "I got this error" are better off posted to google groups or github issues as they will be indexed by google search for the future.
indexes = torch.LongTensor(torch.find(torch.ne(frequencies,0.0),1)) freqs = frequencies:index(1,indexes)
freqs = frequences[frequences:gt(0)]
a = torch.range(1, 10) a:apply(function(x) if x % 2 == 0 then return 0 end end) print(a[a:gt(0)]) --- 1 3 5 7 9 [torch.DoubleTensor of dimension 5]