aboutsummaryrefslogtreecommitdiff
path: root/chapters/image.adoc
AgeCommit message (Collapse)Author
2021-10-04Move quantization parameters into argument tablesEric Kunze
The TOSA specification doesn't have quantized types. Without those types, it is cleaner to move effects of quantization such as the zero points into the standard list of arguments, rather than existing as a separate table. Change-Id: I18ea2959e9d3e4a3e9a0ead7a8ca319bb4426a47
2021-09-16Clarify range limitations for tensorsEric Kunze
Catch zero and negative sized tensors. Clarify configuration of bool_t in the reference model. int4_t limitations on -8 to stay symmetric around 0. Pad values must be >= 0. Stride,dilation values must be >= 1. Change-Id: Idb6ef740f855912a8340475ba319816f90c9b051 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
2021-07-13Add definition of TOSA complianceDominic Symes
Signed-off-by: Dominic Symes <dominic.symes@arm.com> Change-Id: I2e25d0467843adb078d5ab9fd681af40b2ffa52e
2021-06-24Replace assert with REQUIRE()Eric Kunze
REQUIRE is a direct replacement for the asserts, and uses the unpredictable() function in pseudocode to describe the required conditions for operators Change-Id: I35dc81e083d8e41f16728d992bdb8b06b0271226 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
2021-06-17RESIZE: Clarify dimension limitsDominic Symes
X and Y dimensions of image limited to 16-bit for integer data types so that the position * stride calculations do not overflow an int32_t (both position and stride are then 16-bit) Signed-off-by: Dominic Symes <dominic.symes@arm.com> Change-Id: I24d15b1f2991a18da15493bef478d5ee9c65dba3
2021-05-20Fix typo in RESIZE argumentsDominic Symes
The missing column prevented later rows of arguments being rendered correctly in html Signed-off-by: Dominic Symes <dominic.symes@arm.com> Change-Id: Ifa4edd38dc49f2ce6a182ec8cb44f8773a5bfa05
2021-04-14RESIZE: Clarify the valid range of stride values.Dominic Symes
Clarify stride ranges so that the range of valid scales is independent of the shift value. Signed-off-by: Dominic Symes <dominic.symes@arm.com> Change-Id: I56b4dd3b39df19da35fb2c6fe3035e2de42f4860
2021-03-11Make pseudocode block tags consistentEric Kunze
They are all now [source,c++] and use ---- as the delimiter. Also made the pseudocode indentation consistent (4 spaces) in the introduction sections. Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I1287a60cfeae8b7e3c63b9fc8885b1ebf3d3386d
2021-03-08Consistency cleanupEric Kunze
Attempt to get consistent across the pseudocode. Change the data types to all be intN_t instead of some cases of intN. Use float_t as the general floating point data type. Be consistent on use of the term "floating-point" Move general pseudocode helpers to their own section. Change-Id: Ie77666cd3ee438c71f39c62b9c424fe687b0bb51 Signed-off-by: Eric Kunze <eric.kunze@arm.com>
2020-12-16Disambiguate scale_t in RESIZE commandEric Kunze
scale_t is already defined globally for the rescaling. Move pseudocode for count_leading_zeros to introduction, and use it in the implementation of CLZ. Change-Id: I2453bce93b6dd25e870b8a010fc62af4c001cbf9
2020-11-10Update RESIZE descriptionEric Kunze
Try to make the different modes clearer, especially the integer BILINEAR mode. Change-Id: I6a2ab6ee4ed9e6a76d13bec4498e213a7f20b91f Signed-off-by: Eric Kunze <eric.kunze@arm.com>
2020-10-28RESIZE: Add float typeDominic Symes
Add floating point as an allowed data type for RESIZE. Signed-off-by: Dominic Symes <dominic.symes@arm.com> Change-Id: I01766edabe922d395175356387ea325bfc301fd3
2020-10-12Fix errors in RESIZEDominic Symes
Fix typing errors in the resize operation and simplify the assert checking. Signed-off-by: Dominic Symes <dominic.symes@arm.com> Change-Id: If12b9e54a6e9f84f0d6122be7d4a4b567fd81e0f
2020-10-01TOSA spec 0.20.0, initial public versionv0.20.0Eric Kunze
Change-Id: I7c528ebf7e78759ada4bb951b2471c367d3f4525