could you advise how to deal with this problem?
when i tired to analyze the model_second only, it works well, but analyzing model_combined raised the following error:
Traceback (most recent call last):
File "<ipython-input-60-ffcee663d9bb>", line 1, in <module>
analyze = analyzer_cls.analyze(input_sample)
File "/home/zzangho/miniconda3/envs/tf36/lib/python3.6/site-packages/innvestigate/analyzer/base.py", line 473, in analyze
self.create_analyzer_model()
File "/home/zzangho/miniconda3/envs/tf36/lib/python3.6/site-packages/innvestigate/analyzer/base.py", line 411, in create_analyzer_model
model, stop_analysis_at_tensors=stop_analysis_at_tensors)
File "/home/zzangho/miniconda3/envs/tf36/lib/python3.6/site-packages/innvestigate/analyzer/gradient_based.py", line 256, in _create_analysis
return super(GuidedBackprop, self)._create_analysis(*args, **kwargs)
File "/home/zzangho/miniconda3/envs/tf36/lib/python3.6/site-packages/innvestigate/analyzer/base.py", line 711, in _create_analysis
return_all_reversed_tensors=return_all_reversed_tensors)
File "/home/zzangho/miniconda3/envs/tf36/lib/python3.6/site-packages/innvestigate/analyzer/base.py", line 700, in _reverse_model
return_all_reversed_tensors=return_all_reversed_tensors)
File "/home/zzangho/miniconda3/envs/tf36/lib/python3.6/site-packages/innvestigate/utils/keras/graph.py", line 1003, in reverse_model
raise Exception("This is not supposed to happen!")
Exception: This is not supposed to happen!
Thank you for the great toolbox.
I tried to analyze the model that are combined by two models, but it raised 'Exception: This is not supposed to happen!' error
here is my example code.
could you advise how to deal with this problem? when i tired to analyze the
model_second
only, it works well, but analyzingmodel_combined
raised the following error: