runtime_context_cache_pass breaks accuracy of FP32 C-API inference of ResNet50 and MobileNet-v1
Created by: wojtuss
The runtime_context_cache_pass
breaks accuracy of inference of (at least) ResNet50 and MobileNet-v1 if the inference requires more than 1 iteration.
INT8 inference works fine.
Can be verified using the test in PR https://github.com/PaddlePaddle/Paddle/pull/16559. With a single iteration, the test passes. With multiple iterations, the test fails.