@dskhudia
The performance improved slightly after per channel quantization, but it is still very bad

Do you think I should try float 16 instead? If so, how do I change the config to change it to Float16.
Also, in your earlier response ref_output is the output from the net ?  i.e ref_output=net(x), is that what you meant ?
Thanks again for your help , hope I can resolve this problem