convnet cpu code enhancement