'Conversion of a keras sequential model to a spiking neural network using Nengo-dl

I'm trying to convert a Keras model to a Spiking Neural Network using Nengo-DL. The sequential model is working but when I convert it to SNN, it gives this error:

ValidationError: probe data: should have rank 3 (batch_size, n_steps, dimensions), found rank 2

Could you please help me to fix this error.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source