.

num_parameters

<
source
>
(
only_trainable: bool = False
exclude_embeddings: bool = False

)
→
int

Parameters 

only_trainable (bool, optional, defaults to False) —
Whether or not to return only the number of trainable parameters


exclude_embeddings (bool, optional, defaults to False) —
Whether or not to return only the number of non-embeddings parameters


Returns

int



The number of parameters.


Get number of (optionally, trainable o