tensorRT how to change INPUT_W & INPUT_H without modifing the prototxt file

tensorRT set input width & height depend on the prototxt file, if the input image resolution changed, is there any way to change the input width & height quickly? (modify the prototxt and buildCudaEngine cost too much time)