Skip to content

Commit

Permalink
Remove old tf.logging calls due to deprecation in TF2.x (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
jklaise authored Aug 19, 2020
1 parent e284b78 commit 6fa9e59
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion examples/anchor_image_fashion_mnist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"import tensorflow as tf\n",
"tf.logging.set_verbosity(tf.logging.ERROR) # suppress deprecation messages\n",
"from tensorflow.keras.layers import Conv2D, Dense, Dropout, Flatten, MaxPooling2D, Input\n",
"from tensorflow.keras.models import Model\n",
"from tensorflow.keras.utils import to_categorical\n",
Expand Down
1 change: 0 additions & 1 deletion examples/anchor_image_imagenet.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"outputs": [],
"source": [
"import tensorflow as tf\n",
"tf.logging.set_verbosity(tf.logging.ERROR) # suppress deprecation messages\n",
"import matplotlib\n",
"%matplotlib inline\n",
"import matplotlib.pyplot as plt\n",
Expand Down
1 change: 0 additions & 1 deletion examples/linearity_measure_fashion_mnist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
"from time import time\n",
"\n",
"import tensorflow as tf\n",
"tf.logging.set_verbosity(tf.logging.ERROR) # suppress deprecation messages\n",
"\n",
"from alibi.confidence.model_linearity import linearity_measure, LinearityMeasure\n",
"from alibi.confidence.model_linearity import _infer_feature_range\n",
Expand Down
4 changes: 1 addition & 3 deletions examples/trustscore_mnist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
"outputs": [],
"source": [
"import tensorflow as tf\n",
"tf.logging.set_verbosity(tf.logging.ERROR) # suppress deprecation messages\n",
"from tensorflow.keras import backend as K\n",
"from tensorflow.keras.layers import Conv2D, Dense, Dropout, Flatten, MaxPooling2D, Input, UpSampling2D\n",
"from tensorflow.keras.models import Model, load_model\n",
"from tensorflow.keras.utils import to_categorical\n",
Expand Down Expand Up @@ -800,7 +798,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 6fa9e59

Please sign in to comment.