MCPcopy Create free account
hub / github.com/OpenBMB/VisRAG / __init__

Method __init__

timm_modified/timm/layers/classifier.py:140–181  ·  view source on GitHub ↗

Args: in_features: The number of input features. num_classes: The number of classes for the final classifier layer (output). hidden_size: The hidden size of the MLP (pre-logits FC layer) if not None. pool_type: Global pooling type, pooling di

(
            self,
            in_features: int,
            num_classes: int,
            hidden_size: Optional[int] = None,
            pool_type: str = 'avg',
            drop_rate: float = 0.,
            norm_layer: Union[str, Callable] = 'layernorm2d',
            act_layer: Union[str, Callable] = 'tanh',
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 4

get_norm_layerFunction · 0.85
get_act_layerFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected