fastNLP.models.base_model module

undocumented

class fastNLP.models.base_model.BaseModel[源代码]

基类:torch.nn.modules.module.Module

Base PyTorch model for all models.

training: bool
class fastNLP.models.base_model.NaiveClassifier(in_feature_dim, out_feature_dim)[源代码]

基类:fastNLP.models.base_model.BaseModel

一个简单的分类器例子,可用于各种测试

training: bool