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

Error running on exported onnx model #142

Open
yaphet266 opened this issue Jun 14, 2024 · 1 comment
Open

Error running on exported onnx model #142

yaphet266 opened this issue Jun 14, 2024 · 1 comment

Comments

@yaphet266
Copy link

The export of ckpt file to onnx model resulted in an error message, as shown below:
[ErrorCode:NotImplemented] Could not find an implementation for Trilu(14) node with name '/Trilu'"

System information:
onnxruntime:1.13.1
opset_version=14
torch 2.2.1+cu118

@hungcao0402
Copy link

I changed dtype=torch.bool to torch.float and success

tgt_mask = query_mask = torch.triu(torch.ones((num_steps, num_steps), dtype=torch.bool, device=self._device), 1)

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

2 participants