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>
diff --git a/ethosu/vela/tflite_mapping.py b/ethosu/vela/tflite_mapping.py
index b1e0eae..a94db70 100644
--- a/ethosu/vela/tflite_mapping.py
+++ b/ethosu/vela/tflite_mapping.py
@@ -1000,7 +1000,17 @@
),
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: (