use cntk trained model with python

后端 未结 1 1396
隐瞒了意图╮
隐瞒了意图╮ 2021-01-19 02:29

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 us

相关标签:
1条回答
  • 2021-01-19 03:05

    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)
    
    0 讨论(0)
提交回复
热议问题