keunwoochoi/kapre

ValueError: Exception encountered when calling STFT.call().

natesh-ganesh opened this issue · 1 comments

Keep getting this error when I try to run the example codes. Not able to figure out why.

ValueError: Exception encountered when calling STFT.call().

Could not automatically infer the output shape / dtype of 'stft' (of type STFT). Either the STFT.call() method is incorrect, or you need to implement the STFT.compute_output_spec() / compute_output_shape() method. Error encountered:

Invalid dtype: complex64

Arguments received by STFT.call():
• args=('<KerasTensor shape=(None, 44100, 6), dtype=float32, sparse=False, name=keras_tensor>',)
• kwargs=<class 'inspect._empty'>

I would like to know if this was resolved? I al actually interested on the steps since I ran into the same situation while converting the h5 file to tflite.