Clears the field, and sets this entry to the `NO_VALUE` state.
| 104 | |
| 105 | // Clears the <val> field, and sets this entry to the `NO_VALUE` state. |
| 106 | void ClearVal() { |
| 107 | if (state == State::HAS_VALUE) { |
| 108 | val.Destroy(); |
| 109 | } |
| 110 | state = State::NO_VALUE; |
| 111 | } |
| 112 | |
| 113 | union { |
| 114 | // A tensor value. Valid iff `state_ == HAS_VALUE`. |
no test coverage detected