-
Hello, I have a question regarding the differentiation between Code reference: https://github.com/Project-MONAI/MONAI/blob/dev/monai/networks/blocks/mlp.py At line 54, we define Following this, there is a conditional check: If dropout_opt is vit, then It seems that in the latter case, Could you please explain the purpose of this differentiation? Thank you and sorry for any inconvenience caused. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @clamcy, thanks for your interest here. The difference is described here: https://github.com/Project-MONAI/MONAI/blob/08d572839ede5d087e49d4dfadba033e512528df/monai/networks/blocks/mlp.py#L37C13-L41C95 |
Beta Was this translation helpful? Give feedback.
Hi @clamcy, thanks for your interest here.
The difference is described here: https://github.com/Project-MONAI/MONAI/blob/08d572839ede5d087e49d4dfadba033e512528df/monai/networks/blocks/mlp.py#L37C13-L41C95
"vit" mode uses two dropout instances and "swin" will only use one.