Fix tests that incorrectly handle large const tensors.

  - The failing tests incorrectly expect the data to be copied right
    away when calling setOperandValue on large tensors.
  - Making the affected tensors static so that they are still valid till
    Model.finish() is called.

Bug: 67603060
Test: NeuralNetworksTest pass
Change-Id: I2ad627b9022eae6144d95e06d310ea3d8a2ec42e
2 files changed
tree: 431621b60353efca3001fc43938e9ecd3900cda2
  1. nn/
  2. Android.bp