compress a model
压缩模型,先要freeze
dp compress -i graph.pb -o graph-compress.pb
The model compression interface requires the version of deepmd-kit used in original model generation should be 2.0.0-alpha.0 or above. If one has a frozen 1.2 or 1.3 model, one can upgrade it through the dp convert-from interface.(eg: dp convert-from 1.2/1.3 -i old_frozen_model.pb -o new_frozen_model.pb)
dp convert-from 1.2 -i old_frozen_model.pb -o new_frozen_model.pb
# or 1.3 and so on