Hi, Thanks for your code, it works perfectly. I have used your code to run on windows visual studio. I was wondering whether it is possible to separate the code into initialization and inference functions. or perform the encapsulation? I tried this but when I pass session to the function, it causes the error. Please give me any suggestions if possible. Thanks.