| 365 | return d.dim.IsSet() ? d.dim->value_ : d.val; |
| 366 | } |
| 367 | static inline bool ValueKnown(DimensionOrConstant d) { |
| 368 | return Value(d) != kUnknownDim; |
| 369 | } |
| 370 | |
| 371 | // Fills the output proto with the shape defined by the handle. |
| 372 | // "proto" is expected to be empty prior to the call. |