My application in C++ and it uses tensorflow-r1.2 to read .pb model and do inference. However, I want to migrate tensorflow 2 slowly, now I do my training in tensorflow 2 an