You could load your numpy arrays as dtype=np.float32, if that’s possible. This would make them torch.FloatTensors automatically.
Also, .view is a cheap operation, since it just returns a new “view” on the Tensor without copying any data.
You should be fine using it.