modelzoo.transformers.pytorch.bert.bert_pretrain_models.BertClassifierHead#

class modelzoo.transformers.pytorch.bert.bert_pretrain_models.BertClassifierHead[source]#

Bases: torch.nn.Module

Methods

forward

reset_parameters

__call__(*args: Any, **kwargs: Any) Any#

Call self as a function.

__init__(hidden_size=768, num_classes=2, use_bias=True, kernel_initializer='xavier_uniform')[source]#
static __new__(cls, *args: Any, **kwargs: Any) Any#