summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2021-03-18 20:38:23 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-03-18 20:38:23 +0000
commit40122ae511eddee1e220d9d9b6021ce048987c0d (patch)
tree05bd96180f6d1d489a3ea6ece45f8ed86727e868
parente5611aa5c6e8c6d5a225b2583ecb4f338edfae76 (diff)
parent62445b7d5bcdde3e583de2cab5f8015e5cb725bb (diff)
Merge "Document the default alignment and padding value."
-rw-r--r--neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl5
1 files changed, 5 insertions, 0 deletions
diff --git a/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl b/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl
index 1b2378f016..f656360ff9 100644
--- a/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl
+++ b/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl
@@ -35,6 +35,11 @@ package android.hardware.neuralnetworks;
* total size of the writable region of the output data, and padding specifies the extra bytes at
* the end of the memory region that may be used by the device to access memory in chunks, for
* efficiency, but must not be used to hold any output data.
+ *
+ * When used in RequestArgument, clients should prefer to align and pad the sub-region to
+ * 64 bytes when possible; this may allow the device to access the sub-region more efficiently.
+ * The sub-region is aligned to 64 bytes if the value of offset is a multiple of 64.
+ * The sub-region is padded to 64 bytes if the sum of length and padding is a multiple of 64.
*/
@VintfStability
parcelable DataLocation {