Use learnable cntk model with python

I trained the model using CNTK, called simple.dnn now in the testing phase I do not want to install CNTK on windows, but use the trained model with python. How can I use a trained model (weights, ...) for testing with python?

+5
source share
1 answer

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

 from cntk import load_model loaded_model = load_model("yourModel.model", 'float') output = model.eval(arguments) 
+7
source

Source: https://habr.com/ru/post/1259500/


All Articles