소스 검색

make TensorFlow 2 examples compatible with Python 3 (#339)

Sebastian Stein 5 년 전
부모
커밋
922833aff4
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tensorflow_v2/notebooks/1_Introduction/helloworld.ipynb

+ 2 - 2
tensorflow_v2/notebooks/1_Introduction/helloworld.ipynb

@@ -37,7 +37,7 @@
    "source": [
     "# Create a Tensor.\n",
     "hello = tf.constant(\"hello world\")\n",
-    "print hello"
+    "print(hello)"
    ]
   },
   {
@@ -55,7 +55,7 @@
    ],
    "source": [
     "# To access a Tensor value, call numpy().\n",
-    "print hello.numpy()"
+    "print(hello.numpy())"
    ]
   }
  ],