Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Varying input shape #16

Open
anasvaf opened this issue Apr 19, 2023 · 0 comments
Open

Varying input shape #16

anasvaf opened this issue Apr 19, 2023 · 0 comments

Comments

@anasvaf
Copy link

anasvaf commented Apr 19, 2023

Hello,

Thank you for translating the PyTorch script to TensorFlow :)
I have a question about the input shape that we can feed to the ConformerBlock. The block, currently, can support an input shape of [Batch_Size, Time, Frequency] (in the case of audio). Assume that my Time dimension is not fixed, but is varying. Therefore, an example could be that i get [None(batch_size), None(Time_size), 128(Frequency)]. The block as it is does not support it. The error is occurring in the attention.py that the line seq = tf.range(n) does not support None values. Any ideas how to overcome this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant