CUDA element-wise layer.