From a8dfa1de3dffa222b8ddc6d4a522110191c9bf73 Mon Sep 17 00:00:00 2001 From: Dan Zheng Date: Fri, 22 Mar 2019 09:32:23 -0700 Subject: [PATCH] Move license to top of tutorials. (#159) * Move license to top of tutorials. * Ensure table of contents is visible for all tutorials. --- .../tutorials/custom_differentiation.ipynb | 61 ++++++++----------- .../model_training_walkthrough.ipynb | 60 ++++++++---------- .../tutorials/python_interoperability.ipynb | 61 ++++++++----------- .../using_raw_tensorflow_operators.ipynb | 58 ++++++++---------- 4 files changed, 101 insertions(+), 139 deletions(-) diff --git a/docs/site/tutorials/custom_differentiation.ipynb b/docs/site/tutorials/custom_differentiation.ipynb index 1d6df0968d6..abc9639712d 100644 --- a/docs/site/tutorials/custom_differentiation.ipynb +++ b/docs/site/tutorials/custom_differentiation.ipynb @@ -6,7 +6,8 @@ "name": "Custom differentiation.ipynb", "version": "0.3.2", "provenance": [], - "collapsed_sections": [] + "collapsed_sections": [], + "toc_visible": true }, "kernelspec": { "name": "swift", @@ -24,6 +25,30 @@ "##### Copyright 2018 The TensorFlow Authors. [Licensed under the Apache License, Version 2.0](#scrollTo=Afd8bu4xJOgh)." ] }, + { + "metadata": { + "id": "tNgCmfUvJNoF", + "colab_type": "code", + "colab": {} + }, + "cell_type": "code", + "source": [ + "#@title Licensed under the Apache License, Version 2.0 (the \"License\"); { display-mode: \"form\" }\n", + "// Licensed under the Apache License, Version 2.0 (the \"License\");\n", + "// you may not use this file except in compliance with the License.\n", + "// You may obtain a copy of the License at\n", + "//\n", + "// https://www.apache.org/licenses/LICENSE-2.0\n", + "//\n", + "// Unless required by applicable law or agreed to in writing, software\n", + "// distributed under the License is distributed on an \"AS IS\" BASIS,\n", + "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", + "// See the License for the specific language governing permissions and\n", + "// limitations under the License." + ], + "execution_count": 0, + "outputs": [] + }, { "metadata": { "id": "AlvdCHw5JGyx", @@ -741,40 +766,6 @@ "source": [ "Just like that, it is super easy to define generic differentiable programming libraries for different domains." ] - }, - { - "metadata": { - "id": "Afd8bu4xJOgh", - "colab_type": "text" - }, - "cell_type": "markdown", - "source": [ - "## License" - ] - }, - { - "metadata": { - "id": "tNgCmfUvJNoF", - "colab_type": "code", - "colab": {} - }, - "cell_type": "code", - "source": [ - "#@title Licensed under the Apache License, Version 2.0 (the \"License\"); { display-mode: \"form\" }\n", - "// Licensed under the Apache License, Version 2.0 (the \"License\");\n", - "// you may not use this file except in compliance with the License.\n", - "// You may obtain a copy of the License at\n", - "//\n", - "// https://www.apache.org/licenses/LICENSE-2.0\n", - "//\n", - "// Unless required by applicable law or agreed to in writing, software\n", - "// distributed under the License is distributed on an \"AS IS\" BASIS,\n", - "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", - "// See the License for the specific language governing permissions and\n", - "// limitations under the License." - ], - "execution_count": 0, - "outputs": [] } ] } \ No newline at end of file diff --git a/docs/site/tutorials/model_training_walkthrough.ipynb b/docs/site/tutorials/model_training_walkthrough.ipynb index 6d5a5d8e967..cb45611cbff 100644 --- a/docs/site/tutorials/model_training_walkthrough.ipynb +++ b/docs/site/tutorials/model_training_walkthrough.ipynb @@ -26,6 +26,31 @@ "##### Copyright 2018 The TensorFlow Authors. [Licensed under the Apache License, Version 2.0](#scrollTo=y_UVSRtBBsJk)." ] }, + { + "metadata": { + "colab_type": "code", + "id": "CPII1rGR2rF9", + "scrolled": true, + "colab": {} + }, + "cell_type": "code", + "source": [ + "#@title Licensed under the Apache License, Version 2.0 (the \"License\"); { display-mode: \"form\" }\n", + "// Licensed under the Apache License, Version 2.0 (the \"License\");\n", + "// you may not use this file except in compliance with the License.\n", + "// You may obtain a copy of the License at\n", + "//\n", + "// https://www.apache.org/licenses/LICENSE-2.0\n", + "//\n", + "// Unless required by applicable law or agreed to in writing, software\n", + "// distributed under the License is distributed on an \"AS IS\" BASIS,\n", + "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", + "// See the License for the specific language governing permissions and\n", + "// limitations under the License." + ], + "execution_count": 0, + "outputs": [] + }, { "metadata": { "colab_type": "text", @@ -1386,41 +1411,6 @@ "name": "stdout" } ] - }, - { - "metadata": { - "id": "y_UVSRtBBsJk", - "colab_type": "text" - }, - "cell_type": "markdown", - "source": [ - "## License" - ] - }, - { - "metadata": { - "colab_type": "code", - "id": "CPII1rGR2rF9", - "scrolled": true, - "colab": {} - }, - "cell_type": "code", - "source": [ - "#@title Licensed under the Apache License, Version 2.0 (the \"License\"); { display-mode: \"form\" }\n", - "// Licensed under the Apache License, Version 2.0 (the \"License\");\n", - "// you may not use this file except in compliance with the License.\n", - "// You may obtain a copy of the License at\n", - "//\n", - "// https://www.apache.org/licenses/LICENSE-2.0\n", - "//\n", - "// Unless required by applicable law or agreed to in writing, software\n", - "// distributed under the License is distributed on an \"AS IS\" BASIS,\n", - "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", - "// See the License for the specific language governing permissions and\n", - "// limitations under the License." - ], - "execution_count": 0, - "outputs": [] } ] } \ No newline at end of file diff --git a/docs/site/tutorials/python_interoperability.ipynb b/docs/site/tutorials/python_interoperability.ipynb index 5f4a37766e1..4be2914909c 100644 --- a/docs/site/tutorials/python_interoperability.ipynb +++ b/docs/site/tutorials/python_interoperability.ipynb @@ -6,7 +6,8 @@ "name": "Python interoperability.ipynb", "version": "0.3.2", "provenance": [], - "collapsed_sections": [] + "collapsed_sections": [], + "toc_visible": true }, "kernelspec": { "name": "swift", @@ -24,6 +25,30 @@ "##### Copyright 2018 The TensorFlow Authors. [Licensed under the Apache License, Version 2.0](#scrollTo=ByZjmtFgB_Y5)." ] }, + { + "metadata": { + "id": "tRIJp_4m_Afz", + "colab_type": "code", + "colab": {} + }, + "cell_type": "code", + "source": [ + "#@title Licensed under the Apache License, Version 2.0 (the \"License\"); { display-mode: \"form\" }\n", + "// Licensed under the Apache License, Version 2.0 (the \"License\");\n", + "// you may not use this file except in compliance with the License.\n", + "// You may obtain a copy of the License at\n", + "//\n", + "// https://www.apache.org/licenses/LICENSE-2.0\n", + "//\n", + "// Unless required by applicable law or agreed to in writing, software\n", + "// distributed under the License is distributed on an \"AS IS\" BASIS,\n", + "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", + "// See the License for the specific language governing permissions and\n", + "// limitations under the License." + ], + "execution_count": 0, + "outputs": [] + }, { "metadata": { "id": "sI1ZtrdiA4aY", @@ -578,40 +603,6 @@ "execution_count": 13 } ] - }, - { - "metadata": { - "id": "ByZjmtFgB_Y5", - "colab_type": "text" - }, - "cell_type": "markdown", - "source": [ - "## License" - ] - }, - { - "metadata": { - "id": "tRIJp_4m_Afz", - "colab_type": "code", - "colab": {} - }, - "cell_type": "code", - "source": [ - "#@title Licensed under the Apache License, Version 2.0 (the \"License\"); { display-mode: \"form\" }\n", - "// Licensed under the Apache License, Version 2.0 (the \"License\");\n", - "// you may not use this file except in compliance with the License.\n", - "// You may obtain a copy of the License at\n", - "//\n", - "// https://www.apache.org/licenses/LICENSE-2.0\n", - "//\n", - "// Unless required by applicable law or agreed to in writing, software\n", - "// distributed under the License is distributed on an \"AS IS\" BASIS,\n", - "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", - "// See the License for the specific language governing permissions and\n", - "// limitations under the License." - ], - "execution_count": 0, - "outputs": [] } ] } \ No newline at end of file diff --git a/docs/site/tutorials/using_raw_tensorflow_operators.ipynb b/docs/site/tutorials/using_raw_tensorflow_operators.ipynb index 88258d9d871..cf095d70e2f 100644 --- a/docs/site/tutorials/using_raw_tensorflow_operators.ipynb +++ b/docs/site/tutorials/using_raw_tensorflow_operators.ipynb @@ -25,6 +25,30 @@ "##### Copyright 2018 The TensorFlow Authors. [Licensed under the Apache License, Version 2.0](#scrollTo=bPJq2qP2KE3u)." ] }, + { + "metadata": { + "id": "fSlQ2vFzKGOY", + "colab_type": "code", + "colab": {} + }, + "cell_type": "code", + "source": [ + "#@title Licensed under the Apache License, Version 2.0 (the \"License\"); { display-mode: \"form\" }\n", + "// Licensed under the Apache License, Version 2.0 (the \"License\");\n", + "// you may not use this file except in compliance with the License.\n", + "// You may obtain a copy of the License at\n", + "//\n", + "// https://www.apache.org/licenses/LICENSE-2.0\n", + "//\n", + "// Unless required by applicable law or agreed to in writing, software\n", + "// distributed under the License is distributed on an \"AS IS\" BASIS,\n", + "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", + "// See the License for the specific language governing permissions and\n", + "// limitations under the License." + ], + "execution_count": 0, + "outputs": [] + }, { "metadata": { "id": "yfNdITLmJtX8", @@ -291,40 +315,6 @@ "name": "stdout" } ] - }, - { - "metadata": { - "id": "bPJq2qP2KE3u", - "colab_type": "text" - }, - "cell_type": "markdown", - "source": [ - "## License" - ] - }, - { - "metadata": { - "id": "fSlQ2vFzKGOY", - "colab_type": "code", - "colab": {} - }, - "cell_type": "code", - "source": [ - "#@title Licensed under the Apache License, Version 2.0 (the \"License\"); { display-mode: \"form\" }\n", - "// Licensed under the Apache License, Version 2.0 (the \"License\");\n", - "// you may not use this file except in compliance with the License.\n", - "// You may obtain a copy of the License at\n", - "//\n", - "// https://www.apache.org/licenses/LICENSE-2.0\n", - "//\n", - "// Unless required by applicable law or agreed to in writing, software\n", - "// distributed under the License is distributed on an \"AS IS\" BASIS,\n", - "// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", - "// See the License for the specific language governing permissions and\n", - "// limitations under the License." - ], - "execution_count": 0, - "outputs": [] } ] } \ No newline at end of file