commit | f328726d690fdc237bdc48b573208d9f8caf1051 | [log] [tgz] |
---|---|---|
author | TreeHugger Robot <treehugger-gerrit@google.com> | Tue Mar 16 21:53:50 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Mar 16 21:53:50 2021 +0000 |
tree | 970f104a158b441adbc4e00e2bc8c53cd024476a | |
parent | 772a9d2b46f3e8c05282adda3e28be4a528c62c1 [diff] | |
parent | 91f691ec8af02c02faf96516c4c63f657c21bb21 [diff] |
Merge "Document the default alignment and padding value." into sc-dev am: 91f691ec8a Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/13879211 Change-Id: I5af5456889736c39c6ba9b53926d2e8db52bb2b5
diff --git a/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl b/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl index 1b2378f..f656360 100644 --- a/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl +++ b/neuralnetworks/aidl/android/hardware/neuralnetworks/DataLocation.aidl
@@ -35,6 +35,11 @@ * 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 {