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

Auto-generate example_input_array property #224

Open
ordabayevy opened this issue Aug 1, 2024 · 0 comments
Open

Auto-generate example_input_array property #224

ordabayevy opened this issue Aug 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ordabayevy
Copy link
Contributor

LightningModule has example_input_array property which if set provides following benefits:

  1. Debugging: Print input output layer dimensions
  2. Logging: Add the computational graph to tensorboard
  3. UX: It can help to infer the keys of batch_keys dictionary and help the user to determine what arguments need to be provided to the transforms and the model.

The proposal is to have some automated way of generating example_input_array on supported transforms/models. This might be possible because we use specific argument names in our transforms and models (e.g. x_ng, total_mrna_umis_n, etc).

@ordabayevy ordabayevy added the enhancement New feature or request label Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant