0
点赞
收藏
分享

微信扫一扫

dp compress

浮游图灵 2022-02-22 阅读 39
深度学习

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 条评论