Add a field in ModelBuilder to indicate whether the model is invalid or
not.

  - Mutating an invalid model is disallowed, and will return BAD_STATE.
  - Currently only validation failures caught during finish() will flip
  this flag to true.
  - Slightly modify the validation cases to not expect finish() to always
  succeed.

Bug: 75980486
Test: mm
Test: ValidationTestModel.SetOperandValueFromMemory
Test: NeuralNetworkTests (no new test failures)
Change-Id: If9289b65501266baf9048d8cdc621b64064e90ec
3 files changed
tree: fa6d086b020cc253c95ea5f3ed655138c978b794
  1. nn/
  2. OWNERS