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).
LightningModule
hasexample_input_array
property which if set provides following benefits: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).