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
{{ message }}
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.
When model outputs a single tensor, this line gets len(outputs_batch) equal to first dimension of the tensor, but it should be 1. On the other hand if model outputs a list with one tensor: [x,], then this line gets outputs_batch as a list, but it expects this variable to be a tensor, so the code breaks. Please fix it, because it is impossible to work with such cases.
The same thing occurs when you try to validate your model here. Code expects outputs to be a tensor, and if it's a list, code breaks.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When model outputs a single tensor, this line gets
len(outputs_batch)
equal to first dimension of the tensor, but it should be 1. On the other hand if model outputs a list with one tensor:[x,]
, then this line getsoutputs_batch
as a list, but it expects this variable to be a tensor, so the code breaks. Please fix it, because it is impossible to work with such cases.The same thing occurs when you try to validate your model here. Code expects outputs to be a tensor, and if it's a list, code breaks.
The text was updated successfully, but these errors were encountered: