Imported from https://github.com/hnanhtuan/selectiveConvFeature