[Grappler] Preserve constness of the GraphDef in GraphView.
1. Split GrapView into GraphView and MutableGraphView with separate {Input/Output}Port types with different node pointer constness.
2. Properly use GraphView and MutableGraphView in graph properties, and get rid of const_cast.
3. Remove const_cast in function optimizer.
4. Migrate GraphView to absl containers and hash
PiperOrigin-RevId: 219488040
Loading
Please sign in to comment