Skip to content
Advertisement

Invalid argument: Dimension -972891 must be >= 0

I have created a data pipeline using tf.data for speech recognition using the following code snippets:

JavaScript

These snippets are borrowed from https://www.tensorflow.org/tutorials/audio/simple_audio#build_and_train_the_model.

And my model is defined as below:

JavaScript

When I start training process this error appears after a few iterations:

JavaScript

Advertisement

Answer

I have found that the issue happened in the padding step, I mean

JavaScript

I’ve replaced the padding step by tf.signal.frame and the issue is resolved.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement