TensorFlow 是一个由 Google 开源的机器学习框架,用于构建和训练各种机器学习模型。它支持多种编程语言,包括 Python、C++ 和 Java,并且可以在多种平台上运行,包括 CPU、GPU 和 TPU。

快速开始

  1. 安装 TensorFlow

    • 使用 pip 安装 TensorFlow:
      pip install tensorflow
      
  2. 编写你的第一个 TensorFlow 程序

    import tensorflow as tf
    
    # 创建一个简单的计算图
    a = tf.constant(5)
    b = tf.constant(6)
    c = a + b
    
    # 启动 TensorFlow 会话并运行计算
    with tf.Session() as sess:
        result = sess.run(c)
        print(result)
    
  3. 学习更多

相关资源

图像示例

TensorFlow logo

TensorFlow_logo

TensorFlow 模型结构图

TensorFlow_model_structure