commit | 4a2c4aae4648b21e27303d737da561261986b77b | [log] [tgz] |
---|---|---|
author | Miao Wang <miaowang@google.com> | Tue Mar 20 11:40:37 2018 -0700 |
committer | Miao Wang <miaowang@google.com> | Thu Mar 22 16:38:05 2018 -0700 |
tree | 9ff167f878a15462cb8f12a37652dc91644276af | |
parent | 52b96aecc7d754b3130ad06795015334488d741d [diff] |
Enforce validations for ANeuralNetworksExecution_setInput/Output - Optional output / input must have both nullptr as buffer and 0 as length. - If newType is NULL, the operand dimensions must be fully specified. And ModelArgumentInfo.dimensions will be the same as the operand dimensions. - For non-optional input / output, user provided length must match the operand size. Bug: 75980924 Test: mm Test: NeuralNetworksTests Change-Id: Iaa8f8193c8a6911afd0990fcf0659d0050de833b