You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there,i'm trying to export VALL-E model into ONNX.
To achieve this goal,i have done these things:
First,i extract the promptlang2id() and textlang2id() functions like below:
Second,to let VALL-E model more focus on Tensor Processing,i modified the inference() function of VALL-E model like below to make it only accept numerical parameters:
So here is the all reproduce steps,it raise the error:
File "/home/elin/anaconda3/envs/valle/lib/python3.10/site-packages/torch/nn/functional.py", line 2237, in embedding
return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
TypeError: embedding(): argument 'indices' (position 2) must be Tensor, not tuple
Is there any wrong with my sample input Tensors or something?
The text was updated successfully, but these errors were encountered:
Hi there,i'm trying to export VALL-E model into ONNX.
To achieve this goal,i have done these things:
First,i extract the
promptlang2id()
andtextlang2id()
functions like below:Second,to let VALL-E model more focus on Tensor Processing,i modified the
inference()
function of VALL-E model like below to make it only accept numerical parameters:Third,i have write an ONNX exportation script like:
So here is the all reproduce steps,it raise the error:
Is there any wrong with my sample input Tensors or something?
The text was updated successfully, but these errors were encountered: