I am loading a model, now I want to test each node in isolation from the rest of the graph, and so I'm using the clone(CloneMethod.clone) method, but I'm finding this recreates the entire model. For example, when I clone the BatchNormalization layer I get this graph. So how do I clone BatchNormalization but disconnect it from the parent Minus node ?
相关问题
- how loss and metric are calculated in cntk
- possible std::async implementation bug Windows
- How best to deal with “None of the above” in Image
- Has Microsoft abandoned CNTK?
- Keras accuracy not increasing over 50% on binary C
相关文章
- How best to deal with “None of the above” in Image
- Has Microsoft abandoned CNTK?
- Keras accuracy not increasing over 50% on binary C
- Cloning a CNTK node to test it in isolation
- CNTK C# API - How to set learner module and number
- How to get images filenames from minibatch?
- Defining a seed value in Branscripts for CNTK sequ
- cntk linear activation function in layers?
You could name every node and then find them by their name. In the model below:
You can call
You can try cloning a particular node using clone method. You can find examples of interrogating CNTK graphs by node names in many of the tutorials. You can also see how you can selectively work on a subgraph in the CNTK 206 tutorials.
Some sample code
This will clone all the layers connected from
n
to the inputx
. One could just get the layer named baz, by declaring a new variable sayy
. y = C.input.variable(4) n_clone_baz = n_clone(y)A more general clone method is available here.
The
clone_method
is what will get you to clone a sub-graph.