can use tensor-rt in thread?

in my project i create 2 threads, in the thread function,use tensor-rt to load and forward the caffemodel,but i get the “cuda failure:77” code,how to understand the error code? if i run the same code not in the thread function it’s i guess is there some reasons with the thread?