Skip to content
Advertisement

Tag: torchscript

ValueError: You have to specify either decoder_input_ids or decoder_inputs_embeds

Trying to convert a question-generation t5 model to torchscript model, while doing that Running into this error ValueError: You have to specify either decoder_input_ids or decoder_inputs_embeds here’s the code that I ran on colab. got this error how to resolve this issue? or is there a better way for converting the t5 model to torchscript. thank you. Answer Update: refer

Advertisement