Is 'node' an operator that consumes only the shape of its input, not the data itself? TODO(ezhulenev): move to op_types.h. Requires to break circular dependency. TODO(ezhulenev): what about Identity passing tensor to Shape consumer?
| 66 | // TODO(ezhulenev): move to op_types.h. Requires to break circular dependency. |
| 67 | // TODO(ezhulenev): what about Identity passing tensor to Shape consumer? |
| 68 | bool IsShapeConsumer(const NodeDef& node) { |
| 69 | const string& op = node.op(); |
| 70 | return op == "Shape" || op == "ShapeN" || op == "Rank" || op == "Size"; |
| 71 | } |
| 72 | |
| 73 | } // namespace |
| 74 |
no test coverage detected