CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

[Python] How to get the activation function of a Dense block

Open main76 opened this issue 8 years ago • 2 comments

I'm working on a job to convert CNTK model to another format, I load the model, and can get the value of W and b for a Dense block easily, but how can I get the activation function?

main76 avatar Dec 20 '17 09:12 main76

Activation is not a stored property to dense block. To find the activation, you can treat the dense block and sub-graph and do a DFS to find the activation. Here an example of DFS on CNTK graph: https://github.com/Microsoft/CNTK/blob/master/bindings/python/cntk/logging/graph.py

ebarsoumMS avatar Dec 22 '17 06:12 ebarsoumMS

@ebarsoumMS Many thanks.

main76 avatar Dec 22 '17 08:12 main76