0%

Tensorflw Node and Graph

  • NodeDef: located in node_def.proto

    • name: unique in a single graph
    • op name: start with ‘_’ for internal use
    • inputs: record the inputs of the node in the form of a string from which outputs of the node, the format is src_node: src_output
    • Device: request device of this node, optional, attr, etc
  • NodeDefBuilder: located in node_def_builder.h

    • This class will build a NodeDef based on OpDef
    • NodeDef will record the input of this node from other nodes
  • NodeProperties: located node_properties.h

    • including: OpDef, NodeDef, input_types, output_types