diff options
author | Rickard Bolin <rickard.bolin@arm.com> | 2023-07-17 16:20:51 +0000 |
---|---|---|
committer | Rickard Bolin <rickard.bolin@arm.com> | 2023-10-10 12:46:12 +0000 |
commit | 529b787f0321cbae1878ecb0994c60f670bc7ea1 (patch) | |
tree | cdfc3fd4ca09b1671b01b367351e89e783f89b85 /ethosu/vela | |
parent | f4aa7f7d63e99b7853f78b17d3329fd6fbdf42bf (diff) | |
download | ethos-u-vela-529b787f0321cbae1878ecb0994c60f670bc7ea1.tar.gz |
MLBEDSW-7853: Missing options for RANDOM_UNIFORM operator
The operator mapping for the RANDOM_UNIFORM operator was missing the
seed and seed 2 options which resulted in those options being removed
when the operator was passed through Vela.
Change-Id: I8469c239ec1d20d775c31a52e4954baf159643f2
Signed-off-by: Rickard Bolin <rickard.bolin@arm.com>
Diffstat (limited to 'ethosu/vela')
-rw-r--r-- | ethosu/vela/tflite_mapping.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ethosu/vela/tflite_mapping.py b/ethosu/vela/tflite_mapping.py index b1e0eaeb..a94db703 100644 --- a/ethosu/vela/tflite_mapping.py +++ b/ethosu/vela/tflite_mapping.py @@ -1000,7 +1000,17 @@ builtin_operator_map = { ), TFLITE_NO_INDICES, ), - BuiltinOperator.RANDOM_UNIFORM: (Op.RandomUniform, None, TFLITE_NO_INDICES), + BuiltinOperator.RANDOM_UNIFORM: ( + Op.RandomUniform, + OptionsSerializer( + "RandomOptions", + ( + "seed", + "seed2", + ), + ), + TFLITE_NO_INDICES, + ), BuiltinOperator.MULTINOMIAL: (Op.Multinomial, None, TFLITE_NO_INDICES), BuiltinOperator.GELU: (Op.Gelu, OptionsSerializer("GeluOptions", ("approximate",)), TFLITE_NO_INDICES), BuiltinOperator.DYNAMIC_UPDATE_SLICE: ( |