"Cuda Error in NCHWTONCHHW2: 33 (invalid resource handle) ",How to solve it?

Can you give some specific practical advice? How can I use both TRT and pb models?
Is it controlling video memory, or is it necessary to convert pb to TRT? Thanks for your advice