Incubator-mxnet: How to get the output of any layer?

Created on 24 Dec 2015  路  6Comments  路  Source: apache/incubator-mxnet

I have successfully completed image-classification-predict.cc.
However,I want to get the output of inner layer using C++ API.
How I do?
Thanks!

Most helpful comment

here is a c++ example to get the output

https://github.com/dmlc/mxnet/tree/master/example/cpp/image-classification

you can use MXPredCreatePartialOut added on PR #1060 instead of MXPredCreate to get the output of any internal layers

All 6 comments

use symbol.getInternals and group symbol

Thanks!
I will try to do this.

I have learned the example.
But,I want to use C++ API or C API.
Thanks for your help.

here is a c++ example to get the output

https://github.com/dmlc/mxnet/tree/master/example/cpp/image-classification

you can use MXPredCreatePartialOut added on PR #1060 instead of MXPredCreate to get the output of any internal layers

This is a pleasant surprise!
Thank you very much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zy-huang picture zy-huang  路  3Comments

dmadeka picture dmadeka  路  3Comments

xzqjack picture xzqjack  路  3Comments

luoruisichuan picture luoruisichuan  路  3Comments

realbns2008 picture realbns2008  路  3Comments