欢迎来到 TensorFlow 的中文社区!以下是一个简单的 Hello World 示例,帮助你快速上手机器学习框架。✨

1. 基本用法

import tensorflow as tf

# 创建一个常量张量
hello = tf.constant("Hello, TensorFlow!")

# 启动会话并运行
with tf.Session() as sess:
    print(sess.run(hello))

运行结果:Hello, TensorFlow!

2. 扩展学习

3. 图片示例

TensorFlow_logo
hello_world_code

需要更多帮助?访问我们的 社区论坛 获取支持!💡