| 72 | } |
| 73 | |
| 74 | bool HasWildcardDimension(const TensorShapeProto& shape) { |
| 75 | for (const auto& dim : shape.dim()) { |
| 76 | if (dim.size() == -1) return true; |
| 77 | } |
| 78 | return false; |
| 79 | } |
| 80 | |
| 81 | const string& GetStringAttr(const NodeDef& node, const string& attr_name) { |
| 82 | CHECK(HasAttr(node, attr_name)); |
no test coverage detected