torch/torch7 — pull request #11 by alvinlschua (2014-02-28 14:24:36+00:00)
Title: Stop =torch.Tensor()[0] from segfaulting

Move precondition checks up to prevent element access from set-faulting.