Two return results will cause error when using libtorch

Hi, guys

two return results for example “return confidence, location” in pytorch and do the jit::trace
but when i use .pt file in libtorch, the app will be crashed?

how can i fix it?

Thanks