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

RuntimeError: Trying to create tensor with negative dimension -6: [-6, 256] #6

Open
tuong-olli opened this issue Jul 18, 2021 · 0 comments

Comments

@tuong-olli
Copy link

tuong-olli commented Jul 18, 2021

Hello @rishikksh20 , thanks for your sharing. I have some issues in training model.

    hs = self.length_regulator(hs, ds, ilens)  # (B, Lmax, adim)
  File "/data/tuong/Yen/AdaSpeech/env/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1051, in _call_impl
    return forward_call(*input, **kwargs)
  File "/data/tuong/Yen/AdaSpeech/core/duration_modeling/length_regulator.py", line 63, in forward
    xs = [self._repeat_one_sequence(x, d) for x, d in zip(xs, ds)]
  File "/data/tuong/Yen/AdaSpeech/core/duration_modeling/length_regulator.py", line 63, in <listcomp>
    xs = [self._repeat_one_sequence(x, d) for x, d in zip(xs, ds)]
  File "/data/tuong/Yen/AdaSpeech/core/duration_modeling/length_regulator.py", line 93, in _repeat_one_sequence
    out.append(x_.repeat(int(d_), 1))
RuntimeError: Trying to create tensor with negative dimension -6: [-6, 256]

and gradient is not updated WARNING - grad norm is nan. Do not update model.
Can you help me solve this issue? Thanks you.

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