AttributeError:模块'innvestigate'没有属性'create_analyzer'

问题描述 投票:0回答:1

我正在尝试安装iNNvestigate来分析我的CNN模型。环境:

  • python 3.6
  • keras 2.2.4
  • tensorflow 2.1
    import innvestigate
    analyzer = innvestigate.create_analyzer("gradient", model)

我收到以下错误:

AttributeError: module 'innvestigate' has no attribute 'create_analyzer'

我希望你能回答我的问题:)

python-3.x keras tensorflow2.0
1个回答
0
投票

这取决于您使用的Tensorflow版本。基于Tensorflow 1.12的iNNvestiagte。安装Tensorflow 1.12后,因此您可以安装iNNvestigate

© www.soinside.com 2019 - 2024. All rights reserved.