You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Inconsistent usage of the linear layer in the SABlock #7992
There are three linear in the original generative repo which now is combined within one linear layer. We need add an argument to make it consistent with before.
Perhaps we change the current implementation to match this instead? I don't know if it's significant but making this an option will be problematic with Torchscript which doesn't like class variables being optional.
I did a quick test, looks the outcome shows significantly different. In this PR, I utilized identity to get around the torchscript conversion issue. Could you please help review it, thanks!
Activity
ericspod commentedon Aug 5, 2024
Perhaps we change the current implementation to match this instead? I don't know if it's significant but making this an option will be problematic with Torchscript which doesn't like class variables being optional.
fix Project-MONAI#7992
KumoLiu commentedon Aug 6, 2024
I did a quick test, looks the outcome shows significantly different. In this PR, I utilized identity to get around the torchscript conversion issue. Could you please help review it, thanks!
Add include_fc and `use_combined_linear` argument in the `SABlock` (P…
Add include_fc and `use_combined_linear` argument in the `SABlock` (P…