文章目录 一、基础 API 1. **Graph(图)** 2. **Session(会话)** 3. **Tensor(张量)** 4. **Operation(操作)** 二、高级 API 1. **加载预训练模型** 2. **训练模型** 3. **推理** 4. **保存和恢复模型** 三、扩展功能 1. **分布式训练** 2. **量化** 3. **服务化** 一、基础 API 1. Graph(图) Graph 类代表了计算图,它是所有操作(如矩阵乘法、加法等)和张量(数据容器)之间的依赖关系的表示形式。你可以通过 Graph 来定义模型结构。 import org.tensorflow.Graph; public class GraphExample { public static void main(String[] args) { try (Graph g = new Graph()) { System.out.println("Created a new graph."); } } } 2.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with import
Contact import, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack