OSDN Git Service

Corrected performanceInfo documentation
authorJean-Luc Brouillet <jeanluc@google.com>
Thu, 5 Oct 2017 01:24:59 +0000 (18:24 -0700)
committerJean-Luc Brouillet <jeanluc@google.com>
Thu, 5 Oct 2017 19:06:36 +0000 (12:06 -0700)
We'll be using relative numbers, change the doc to reflect that.

Bug: 63905942
Test: Compiled
Change-Id: Iad67621cfc76490c2dc471865a3f82cebf175440

neuralnetworks/1.0/types.hal

index a645393..8779723 100644 (file)
@@ -1015,12 +1015,16 @@ enum DeviceStatus : int32_t {
  */
 struct PerformanceInfo {
     /**
-     * Execution time in nanoseconds.
+     * Ratio of the time taken by the driver to execute the
+     * workload compared to the time the CPU would take for the
+     * same workload. A lower number is better.
      */
     float execTime;
 
     /**
-     * Power usage in picoJoules.
+     * Ratio of the energy used by the driver compared to what
+     * the CPU would use for doing the same workload. A lower number
+     * is better.
      */
     float powerUsage;
 };