I am trying to find how I can pass a dynamic-sized array (not fixed size) into my TensorFlow.
I am building an Android App to read Accelerometer values and predict an activity. I have built a TensorFlow model and am able to successfully import .tflite
file into my Android.
converter = tf.lite.TFLiteConverter.from_keras_model(model)
tflite_model = converter.convert()
# save the model
with open("model-v2.tflite", "wb") as f:
f.write(tflite_model)
In my case, the number of Accelerometer X, Y, Z values I would be passing to my TensorFlow model will vary each time. I could pass a series of 10 values or 100 values. So I am trying to find how I can make the TensorFlow model accept a dynamic-sized array instead of a fixed size.
I am new to TensorFlow. So is this something that can be easily achieved?