SciTech-BigDataAIML-Tensorflow-Introduction to graphs and tf.function

发布时间 2024-01-02 18:33:54作者: abaelhe
  • Graphs are data structures that contain:
    1. a set of tf.Operation objects,
      which representing units of computation;
    2. and tf.Tensor objects,
      which represent the units of data that flow between operations.
  • Graphs are defined in a tf.Graph context. Since these graphs are data structures, they can be saved, run, and restored all without the original Python code.