How to learn only the part of the networks?

This post might help you.