From 02205e034f25873c91e7999c7fdc25a1d4001844 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Sat, 12 Oct 2019 17:07:53 +0930 Subject: [PATCH] Remove from __future__ imports as we move away from Python 2 --- work_in_progress/extra_autodiff.ipynb | 17 ----------------- work_in_progress/extra_capsnets-cn.ipynb | 16 ---------------- work_in_progress/extra_capsnets.ipynb | 16 ---------------- .../extra_tensorflow_reproducibility.ipynb | 2 -- 4 files changed, 51 deletions(-) diff --git a/work_in_progress/extra_autodiff.ipynb b/work_in_progress/extra_autodiff.ipynb index dbd3088..aef8d43 100644 --- a/work_in_progress/extra_autodiff.ipynb +++ b/work_in_progress/extra_autodiff.ipynb @@ -21,23 +21,6 @@ "# Setup" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "First, let's make sure this notebook works well in both python 2 and 3:" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [], - "source": [ - "# To support both python 2 and python 3\n", - "from __future__ import absolute_import, division, print_function, unicode_literals" - ] - }, { "cell_type": "markdown", "metadata": {}, diff --git a/work_in_progress/extra_capsnets-cn.ipynb b/work_in_progress/extra_capsnets-cn.ipynb index f674ebd..32b4753 100644 --- a/work_in_progress/extra_capsnets-cn.ipynb +++ b/work_in_progress/extra_capsnets-cn.ipynb @@ -68,22 +68,6 @@ "# Imports" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "同时支持 Python 2 和 Python 3:" - ] - }, - { - "cell_type": "code", - "execution_count": 78, - "metadata": {}, - "outputs": [], - "source": [ - "from __future__ import division, print_function, unicode_literals" - ] - }, { "cell_type": "markdown", "metadata": {}, diff --git a/work_in_progress/extra_capsnets.ipynb b/work_in_progress/extra_capsnets.ipynb index 1569b4a..b951392 100644 --- a/work_in_progress/extra_capsnets.ipynb +++ b/work_in_progress/extra_capsnets.ipynb @@ -68,22 +68,6 @@ "# Imports" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "To support both Python 2 and Python 3:" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": {}, - "outputs": [], - "source": [ - "from __future__ import division, print_function, unicode_literals" - ] - }, { "cell_type": "markdown", "metadata": {}, diff --git a/work_in_progress/extra_tensorflow_reproducibility.ipynb b/work_in_progress/extra_tensorflow_reproducibility.ipynb index 436a334..99f06ac 100644 --- a/work_in_progress/extra_tensorflow_reproducibility.ipynb +++ b/work_in_progress/extra_tensorflow_reproducibility.ipynb @@ -13,8 +13,6 @@ "metadata": {}, "outputs": [], "source": [ - "from __future__ import division, print_function, unicode_literals\n", - "\n", "import numpy as np\n", "import tensorflow as tf\n", "from tensorflow import keras"