Maybe you could print the contents of final_input?
The way you're doing final_input.push(time_step_array); makes me think you might be ending up with an array of arrays, rather than just a single flat 1D array. You probably need to use concat for that - or ideally to use tf.getInput().set(sub_array, offset);
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Maybe you could print the contents of
final_input
?The way you're doing
final_input.push(time_step_array);
makes me think you might be ending up with an array of arrays, rather than just a single flat 1D array. You probably need to useconcat
for that - or ideally to usetf.getInput().set(sub_array, offset);