I want to round a tensor variable to a lower resolution representation (e.g. round a float64 value to it's float48 representation while keeping it float64). Is there an efficient way of doing this?
The closest thing I could find is the tensor.round function but I am not experienced enough to understand how to implement it. I would appreciate any help. Thank you.