NodeDef is a component in the graph representing an operation. It is the fundamental building block in the graph and is also defined by the protocol buffer. The properties NodeDef has are as follows:
- name: Every operation node should have a unique identifier to explicitly specify the connection between operation nodes.
- op: The pointer to the actual operation implementation. The op name is used to look up the actual implementation in the runtime.
- input: A list of the names of input nodes.
- device: This is used to specify where to run the operation, the CPU or GPU.
- attr: Key-value pairs that hold the attributes of the operation. This is a property to provide additional information to define the structure of the operation (such as a ...