提交 8d733859 编写于 作者: W wanghaoshuang

Fix sensitive api.

上级 87fe3a5f
...@@ -75,8 +75,6 @@ def sensitivity(program, ...@@ -75,8 +75,6 @@ def sensitivity(program,
_logger.info("pruned param: {}; {}; loss={}".format(name, ratio, _logger.info("pruned param: {}; {}; loss={}".format(name, ratio,
loss)) loss))
for brother in pruner.pruned_list[0]:
if brother in sensitivities:
sensitivities[name]['pruned_percent'].append(ratio) sensitivities[name]['pruned_percent'].append(ratio)
sensitivities[name]['loss'].append(loss) sensitivities[name]['loss'].append(loss)
......
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
# limitations under the License. # limitations under the License.
""" PaddleSlim version string """ """ PaddleSlim version string """
__all__ = ["slim_version"] __all__ = ["slim_version"]
slim_version = "4.0" slim_version = "0.1"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册