Skip to content
Discussion options

You must be logged in to vote

It depends on whether you want to fine-tune your transformer/LSTM or simply want to use their embeddings (detached from the computation graph). In case of the latter, you can simply input your embeddings into data.x (as you have done). In case of the former, you would need to input the sequence into the transformer as part of your model. Does that answer your question? :)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@JihoChoi
Comment options

Answer selected by JihoChoi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants