turn momentum into float32