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

An error occurs when exporting T5G2PModel to ONNX. #11512

Open
VoiceGenerationProject opened this issue Dec 9, 2024 · 0 comments
Open

An error occurs when exporting T5G2PModel to ONNX. #11512

VoiceGenerationProject opened this issue Dec 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@VoiceGenerationProject
Copy link

Describe the bug

An error occurs when exporting T5G2PModel to ONNX.

Steps/Code to reproduce bug

import torch
from transformers import PreTrainedTokenizerBase, AutoTokenizer

from nemo.collections.tts.g2p.models.t5 import T5G2PModel
model_name = "T5G2P.nemo"
model = T5G2PModel.restore_from(model_name, map_location=torch.device("cpu"))
model.eval()

model.export("test.onnx")

[Error]
RuntimeError: 0 INTERNAL ASSERT FAILED at "../torch/csrc/jit/ir/alias_analysis.cpp":615, please report a bug to PyTorch. We don't have an op for aten::full but it isn't a special case. Argument types: int[], bool, int, NoneType, Device, bool,

Candidates:
aten::full.names(int[] size, Scalar fill_value, *, str[]? names, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
aten::full(SymInt[] size, Scalar fill_value, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
aten::full.names_out(int[] size, Scalar fill_value, *, str[]? names, Tensor(a!) out) -> Tensor(a!)
aten::full.out(SymInt[] size, Scalar fill_value, *, Tensor(a!) out) -> Tensor(a!)

Environment details

If NVIDIA docker image is used you don't need to specify these.
Otherwise, please provide:

  • Ubuntu 20.04
  • PyTorch version - 2.3.0+cu118
  • Python version - 3.10.12
@VoiceGenerationProject VoiceGenerationProject added the bug Something isn't working label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant