dp compress

阅读 39

2022-02-22

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

GitHub

精彩评论(0)

0 0 举报