欢迎使用MindFormers
特性
开发实践
模型
任务
API
FAQ
mindformers.models.gpt2.
GPT2LMHeadModel
Provide gpt training loss or logits through network. :param config: The config of Gpt2Model. :type config: GPT2Config
Tensor, the loss or logits of the network.