modelzoo.common.pytorch.model_utils.GPTLMHeadModelLoss.GPTLMHeadModelLoss#

class modelzoo.common.pytorch.model_utils.GPTLMHeadModelLoss.GPTLMHeadModelLoss[source]#

Bases: torch.nn.Module

Methods

forward

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

Call self as a function.

__init__(vocab_size, loss_scaling, loss_weight)[source]#
static __new__(cls, *args: Any, **kwargs: Any) Any#