Skip to content Skip to sidebar Skip to footer

Use Cntk Trained Model With Python

I have trained a model using CNTK, lets call simple.dnn now for the phase of testing I do not want to install CNTK on windows,but use trained model with python. How can I use train

Solution 1:

You can use the load_model function, see https://www.cntk.ai/pythondocs/cntk.html?highlight=load_model#cntk.persist.load_model. The basic flow should look like this:

from cntk import load_model

loaded_model = load_model("yourModel.model", 'float')
output = model.eval(arguments)

Post a Comment for "Use Cntk Trained Model With Python"