Deep Learning with Theano
上QQ阅读APP看书,第一时间看更新

Inference

Inference is the process of using the model to produce predictions.

For inference, the weight parameters do not need to be updated, so the inference function is simpler than the training function:

infer_model = theano.function(
    inputs=[x],
    outputs=[y_pred]
)