2-3) 텐서플로우 버전 확인 >>> import tensorflow as tf >>> print(tf.__version__)
2-4) Hello World 문자열 출력해보기 >>> tensor_a = tf.constant('hello world') 2023-07-10 11:03:40.253070: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations. To enable the following instructions: SSE SSE2 SSE3 SSE4.1 SSE4.2 AVX AVX2 AVX_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags. >>> tensor_a <tf.Tensor: shape=(), dtype=string, numpy=b'hello world'> >>> tensor_a.numpy() b'hello world' >>>