Closed SagiPolaczek closed 1 year ago
Ready for initial CR 🥳
Example of use:
torch_model = CrossAttentionTransformer(**model_params) bb_model = ModelWrapSeqToDict( model=torch_model, model_inputs=("data.drug.tokenized", "data.target.tokenized"), model_outputs=("model.backbone_features",), post_forward_processing_function=lambda x: x.mean(dim=1), )
Also added a simple unit test to (almost) ensure validity over time
Ready for initial CR 🥳
Example of use:
Also added a simple unit test to (almost) ensure validity over time