We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9b3d7e commit 6a621b5Copy full SHA for 6a621b5
timm/models/naflexvit.py
@@ -844,8 +844,8 @@ def __init__(
844
norm_layer = get_norm_layer(cfg.norm_layer) or LayerNorm
845
embed_norm_layer = get_norm_layer(cfg.embed_norm_layer)
846
act_layer = get_act_layer(cfg.act_layer) or nn.GELU
847
- block_fn = Block # TODO: Support configurable block_fn via string lookup
848
- mlp_layer = Mlp # TODO: Support configurable mlp_layer via string lookup
+ block_fn = cfg.block_fn or Block # TODO: Support configurable block_fn via string lookup
+ mlp_layer = cfg.mlp_layer or Mlp # TODO: Support configurable mlp_layer via string lookup
849
850
# Store instance variables
851
self.num_classes = num_classes
0 commit comments