When I ran the example test_add_1x4x4x4_f32 as described in Readme:
$ ./build/reference_model/tosa_reference_model
-Csubgraph_dir=examples/test_add_1x4x4x4_f32/flatbuffer-tflite
-Csubgraph_file=test_add_1x4x4x4_f32.tosa
-Cinput_dir=examples/test_add_1x4x4x4_f32/
-Coutput_dir=examples_out/test_add_1x4x4x4_f32/
-Coutput_tensor_prefix=ref_model_tflite_
-Cinput_tensor=InputTensor-tflite0:InputTensor-tflite0.npy,InputTensor-tflite1:InputTensor-tflite1.npy
I got the error “Unsupported operation type or rank.”.
After some debugging, it seems OpFactory::newOp just return a nullptr for Op_ADD.