Skip to content
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

N_samples not working for get_normalized_expression #1546

Closed
canergen opened this issue May 23, 2022 · 1 comment
Closed

N_samples not working for get_normalized_expression #1546

canergen opened this issue May 23, 2022 · 1 comment
Labels

Comments

@canergen
Copy link
Member

When using continuous covariates multiple sampling for get_normalized_expression is not working. cont_covs has to be stacked along third dimension.

X_hat = vae_complete.get_normalized_expression(library_size=1e4, transform_batch='N58', n_samples=8, indices=indices_bcell)
    337         """Runs the generative model."""
    338         # TODO: refactor forward function to not rely on y
--> 339         decoder_input = z if cont_covs is None else torch.cat([z, cont_covs], dim=-1)
    340         if cat_covs is not None:
    341             categorical_input = torch.split(cat_covs, 1, dim=1)

RuntimeError: Tensors must have same number of dimensions: got 3 and 2

'0.16.0'

@canergen canergen added the bug label May 23, 2022
@canergen
Copy link
Member Author

canergen commented May 24, 2022

Already opened. #1488

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant