Closed nicholas-leonard closed 10 years ago
torch: https://github.com/torch/torch7/blob/master/lib/TH/generic/THTensorMath.c#L69 https://github.com/torch/torch7/blob/master/generic/Tensor.c#L387 cutorch: https://github.com/torch/cutorch/blob/master/lib/THC/THCTensorMath.cu https://github.com/torch/cutorch/blob/master/lib/THC/THCTensorCopy.cu
@hycis found that this already works :P
torch: https://github.com/torch/torch7/blob/master/lib/TH/generic/THTensorMath.c#L69 https://github.com/torch/torch7/blob/master/generic/Tensor.c#L387 cutorch: https://github.com/torch/cutorch/blob/master/lib/THC/THCTensorMath.cu https://github.com/torch/cutorch/blob/master/lib/THC/THCTensorCopy.cu