OSDN Git Service

Fix VTS failures on tests with optional inputs
authorI-Jui (Ray) Sung <ijsung@google.com>
Thu, 5 Oct 2017 03:49:57 +0000 (20:49 -0700)
committerI-Jui (Ray) Sung <ijsung@google.com>
Thu, 5 Oct 2017 03:49:57 +0000 (20:49 -0700)
commit959cd78e6766626d4cd9c52f7cdc156fd7880169
tree277a6b88de41cc5eda5161484badb4d9831858b7
parente51f34781a93a771ba3f3be8ac407154526389d3
Fix VTS failures on tests with optional inputs

RequestArgument for optional inputs should have its .hasNoValue set
and other fields left empty. The test harness was incorrectly ignoring
the hasNoValue field and initializing the offset field even for missing
arguments. That inconsistency was caught by the sample driver and caused
an invalid argument error. With this CL the test harness now populates
requests correctly for tests with intentionally missing inputs, and that
fixes lstm* and lsh_projection.

Test: VtsHalNeuralnetworksV1_0TargetTest on Angler
Bug: 63905942
Change-Id: I8729124b720f0d4163f4b9efd452f82b825b0885
neuralnetworks/1.0/vts/functional/GeneratedTestHarness.cpp