Age | Commit message (Collapse) | Author |
|
in nearest mode
Note:
- align_corners and half_pixel can both be true in nearest mode for tfl
but not tf
- this is inconsistent between tf and tfl
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: Ib396f994874904e017e0d696f70370bd51d60161
|
|
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: I6fa14e9dbe7c0cd21156a5779d68fd473af322f2
|
|
Brings up to date with commonly tested configuration
Change-Id: Id1791f506e6d822d69ee962a9403a7092afeaaf6
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
|
|
Also add input size = 1 in the shape list, and extend scaling to
1x, 2x and 3x, so that the cases of broadcasting, power-of-two
scaling, no-scaling (e.g. 1x1 -> 1x1), scaling accuracy (3x) can
be tested. Since the scalar tensor is tiny, should not noticeably
impact the execution time of the framework test.
Change-Id: Iec53da3cbb60e087077d6e2d8eb205e76e6c1313
Signed-off-by: TatWai Chong <tatwai.chong@arm.com>
|
|
Use rint() instead of round() to get round to nearest even behavior
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I45957be0e863de2207850b023626a7c0ea11e5eb
|
|
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: If18fc61514cbc2d31a15ed7dd87147b0d8e69f16
|
|
Signed-off-by: TatWai Chong <tatwai.chong@arm.com>
Change-Id: Ifb3ed9c448005d6d53c5d0938b5146003a26e8a3
|
|
* Restricting size of tensors due to expanded values of ofm_depth
Signed-off-by: James Ward <james.ward@arm.com>
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I582d8f0073c2d01244976f8e2e14783b506d8091
|
|
Updated to align with corresponding changes to the
spec.
In addition, some ERROR_IF tests have been updated to
match the checks specified by the spec, including:
PAD, SLICE, TILE, TRANSPOSE.
Signed-off-by: Luke Hutton <luke.hutton@arm.com>
Change-Id: Ie2c5f48e79a5610eb82739170e25057a63dac1d8
|
|
Signed-off-by: TatWai Chong <tatwai.chong@arm.com>
Change-Id: I4a49f45aa73044aff5b0a8b3dba58c1f52c1ae21
|
|
Change-Id: I4f967ce2dfb0cb44dc58307170fd9306a0ea1ed5
Signed-off-by: James Ward <james.ward@arm.com>
|
|
* Conformance regen required for tosa-bi: conv2d conv3d depthwise_conv2d transpose_conv2d
* Include bug fix for testGen.makeShape()
* Include json changes to limit size of tests which now have ofm_depth > 1
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Ic8221b9a742f5737df523997bee7260f4dfcdef3
|
|
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I44ad6513fad831ff50fcc5ab801b46a5bf25d0a8
|
|
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I2c1e87ec586195f82e97bbc70e4e2bc18cd2cc88
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I6c2087c94c2c024aabc2086d40cbca9c719c69dd
|
|
* Add TOSA test coverage
* Add some basic error checking
Signed-off-by: Luke Hutton <luke.hutton@arm.com>
Change-Id: Ib02df7319954a2dcb915e5f5a70699ca398fd483
|
|
Due to change in generator creating different test patterns.
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I58224dc117c766b22fccd418f64004aea31905b5
|
|
Includes:
* FFT2d reference implementation
* Basic TOSA tests
Change-Id: Ie79fcb713542345d550ec013646810c1e890e388
Signed-off-by: Luke Hutton <luke.hutton@arm.com>
|
|
"tosa_run_tests" -> "tosa_verif_run_tests"
Signed-off-by: Luke Hutton <luke.hutton@arm.com>
Change-Id: Iff8c4874af1dc3e203e1f49563cfa0fd1f373811
|
|
So they do not overwrite tosa-bi tests, ops affected:
NEGATE, TILE, REDUCE_MIN, REDUCE_MAX, RESIZE, SCATTER, GATHER
Update test-select exclude-patterns to work with ERRORIF tests.
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Idb0d26512ce9a48f6d868663a630e343c8785899
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I874c87745b929f9808a5e45490042420a57b22f7
|
|
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: Iefd8490d9eedc76d199d36943b87c99e4dd97612
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: If67f503a1848967bc1671646c3011d055b622c52
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I21b8f8139ce069d5fc6bbeabe292e3a44d99fe10
|
|
* Add exclusion regex's to conformance generation
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I15bef7451efd5662065060242d35bd7fa3381487
|
|
Signed-off-by: Luke Hutton <luke.hutton@arm.com>
Change-Id: I11a891296a040f4e48187d0d51a4dd2c554805ac
|
|
This fixes framework test generation when the "optimized"
kernel mode option is not selected. As a result, the
optimized RFFT2d kernel is used when generating tests in
the reference kernel mode to prevent "op not found"
errors.
Signed-off-by: Luke Hutton <luke.hutton@arm.com>
Change-Id: Ice18bfa08c46e237e39c99f849622bf99d9b849c
|
|
The result comparison between Tensorflow runtime and the reference
model hasn't been checked as the sign operator is not supported by
the native TFLite runtime. That said, since the generated tosa ops
for tf.sign and tfl.sign is identical, the correctness presumably
can be proved by the result from tf.sign.
Change-Id: I72eb415df7fb6ca4dc9103f9ddc7104b0ba39234
Signed-off-by: TatWai Chong <tatwai.chong@arm.com>
|
|
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I4d4834260698db75427590c0a8b80cc3c824ef3b
|
|
Also fix the ERROR_IF conformance test generator to apply correct
operator filtering to create the tests.
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I5788932e3529ec9386900623b20c22c98e4201b7
|
|
Includes:
* RFFT2d reference implementation
* TFLite framework tests
* Basic TOSA tests
* Serialization submodule upgrade with support for FFT/RFFT
Signed-off-by: Luke Hutton <luke.hutton@arm.com>
Change-Id: I2a687e9cf87fb62a26160ea52439ba9830bea36e
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: Ief60ae8fa490ded21aa77726d738565be5f8d91c
|
|
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I04261178694c004409aef2ff5c84c32b04729433
|
|
* Existing float attributes now serialized as bytes
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I415276706b9daf0893e3a59189f387f872ff07c2
|
|
Signed-off-by: Luke Hutton <luke.hutton@arm.com>
Change-Id: I342a162e252c8527d5b318ceaf5f1de70fa5dc34
|
|
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I6958904c2c8932e9fe03b3092672d62a06e96ee6
|
|
Rationale for making this change:
- In the original design, for control flow operators like WhileOp,
child blocks couldn't read the tensor variables (global consts) in the root level block,
this patch added the machanism for child blocks to access their parent
level block's tensors.
- This change also relies on another serialization change on adding
another layer of abtraction called Region:
- Serialization patch: [region] Add TosaSerializationRegion to serialization_lib
- Updated the corresponding python version of the serialization code: TosaSerializerRegion to python version of serialization_lib
- This change also relies on the TOSA MLIR Translator change: Add RegionBuilder to TOSA MLIR Translator
- Added the WhileOp related test cases: While, LSTM, GRU, RNN
- Other related fixes
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
Change-Id: I13ae33628ad07e41d248e88652ce1328654694ab
|
|
Add option to control negative tests dim range to stop ERROR_IF
test clashes between profiles.
Change-Id: I1f806934480cc32b95e80613c66fecb1e6ff5426
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
|
|
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I8d478b7bd13559ea37e27f77b05ee5db56c8f9e3
|
|
- Added missing explicit template instantiations for abstract
operator base classes
Change-Id: I5eb678837f0edaf9bad0f7358b05abc5e3246af4
Signed-off-by: Jared Smolens <jared.smolens@arm.com>
|
|
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I7276dc686d8d18ba44663b73e35ceca2a1cbaadf
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I3339a78d9611905583272ffad0ef7668e046cfad
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I440590fa59433b9ddc1934188f2b34b377129c1f
|
|
- Adds a script to generate operators.h and operators.cc
- Adds jinja2 templates for generating operators.h and operators.cc
- Adds unit tests for a subset of the operators generated
- Includes the TOSA specification as a submodule
- Adds supporting C++ and header files
Signed-off-by: Grant Watson <grant.watson@arm.com>
Change-Id: I5b60db4c56113110d8e75fe1152525d258233f9c
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I75d6280ecb5219d50c91d14029e90ff3a2f6eb06
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I1eb4fbadb9117e28f87a36ee828d65d896d834f0
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I2ee6d4f706958b6261fd41dd245a3d01d3f8cecf
|
|
* Also include test_select improvements
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I306a8ed57975bc429d6cd5a8a24777b889593ddf
|
|
Also include the updated serialization submodule
Signed-off-by: Eric Kunze <eric.kunze@arm.com>
Change-Id: I7a97ae05d16c8a98c38f954ee8014d0f32b282d5
|
|
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I6824e30cece291fceaedd727132a6b211762baa9
|