Tensors with physical Quantities

Is there a standard off-the-shelf way to introduce physical quantities to torch tensors while keeping them differential?
I mostly mean a cosmetic wrapper that can let me know what is the quantity at hand throughout the computation graph. A bonus would be taking care of conversions and “translation” to other quantities when relevant.
any help appreciated, thanks