You cannot learn a th as it’s not backpropagable. You can declare it as a buffer but you should also be able to set a simple python float/integer.
There is no advantage in including it inside model parameters if you are not gonna actively modify it.