related codes in Paddle core.
to create a gradient machine for inference using merged model with parameters which is genearted by `paddle merge_model`.