Upper Triangular Matrix Vectorization

Although this doesn’t seem to work on Variables:

RuntimeError: can't assign Variable to a torch.FloatTensor using a mask (only torch.FloatTensor or float are supported)