-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
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
error at def expBaseAE(adata, exp_metrics): #4
Comments
Thank you! I guess the error is raised by this line of code. Updated the codes with the following nan filtering operations in if torch.any(nans_offset) or torch.any(nans_gamma):
version_1_8 = sum([int(this) >= that for this,that in zip(torch.__version__.split('.')[:2], [1, 8])]) == 2
if version_1_8:
offset = torch.nan_to_num(offset)
gamma = torch.nan_to_num(gamma)
else:
offset = torch.where(nans_offset, torch.zeros_like(offset), offset)
gamma = torch.where(nans_gamma, torch.zeros_like(gamma), gamma) Hope it helps! |
Hi dear team, thanks for the package. I get an error could you mind give some tips.
The text was updated successfully, but these errors were encountered: