A Dynamic Codec with Adaptive Quantization for Convolution Neural Network