Injective Domain Knowledge in Neural Networks for Transprecision Computing