How to get variable value from an inference model?
Created by: TheodoreG
I use following code to get inference model and parameters from a saved model and I know here is a Variable called 'conv2d_9.w_0':
[inference_program, feed_target_names, fetch_targets] = fluid.io.load_inference_model(
dirname=model_path,
executor=exe,
model_filename='__model__',
params_filename='__params__'
)
var= inference_program.global_block().var('conv2d_9.w_0')
How can I get the exact numpy array value from this variable?