## How to install cPickle on Python3 ? # NameError: name ‘cPickle’ is not defined

# NameError: name ‘cPickle’ is not defined

‘cPickle’ can work only on Python2. It doesn’t work on Python3.  You should do like this.

## UserWarning: Discrepancy between trainable weights and collected trainable weights, did you set `model.trainable` without calling `model.compile` after ? ‘Discrepancy between trainable weights and collected trainable’

`UserWarning: Discrepancy between trainable weights and collected trainable weights, did you set model.trainable without calling model.compile after ? 'Discrepancy between trainable weights and collected trainable'`

Solution: You should define layers before define models, and setting ‘trainable’ each time