We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently (as per #899) , the masks are always computed in sequence.
Are the logit Tensors typically async? That is not synchronized yet, so logits.to_vec1() in sample() is what takes almost all time?
logits.to_vec1()
sample()
If so, I guess we could stay with the current interface and just do tokio_rayon::spawn() for the mask as you do for the sampling.
tokio_rayon::spawn()
Otherwise, it would be good to kick-off mask computation before starting the forward pass.
This also depends a little on what we do with #963
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently (as per #899) , the masks are always computed in sequence.
Are the logit Tensors typically async? That is not synchronized yet, so
logits.to_vec1()
insample()
is what takes almost all time?If so, I guess we could stay with the current interface and just do
tokio_rayon::spawn()
for the mask as you do for the sampling.Otherwise, it would be good to kick-off mask computation before starting the forward pass.
This also depends a little on what we do with #963
The text was updated successfully, but these errors were encountered: