Skip to content

Commit cc89606

Browse files
authored
Merge pull request #2175 from sechkova/neuralcleanse-nb
Update Neural Cleanse notebook imports
2 parents d68eec0 + 7829d1b commit cc89606

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

notebooks/poisoning_defense_neural_cleanse.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@
5555
"from art.utils import load_mnist, preprocess\n",
5656
"from art.defences.detector.poison import ActivationDefence\n",
5757
"from art.defences.transformer.poisoning import NeuralCleanse\n",
58-
"from art.estimators.certification.neural_cleanse import KerasNeuralCleanse\n"
58+
"from art.estimators.poison_mitigation import KerasNeuralCleanse\n",
59+
"\n",
60+
"import tensorflow as tf\n",
61+
"if tf.executing_eagerly():\n",
62+
" tf.compat.v1.disable_eager_execution()"
5963
]
6064
},
6165
{

0 commit comments

Comments
 (0)