How to obtain the int8 values of the quantized model weight and the int8 values of the network output of each layer

I want to get the output of each layer of the network weight to verify that the quantized result is equal to the formula and, when the network model is large, how do I call int_repr() to automatically output the int values of all the weight parameters