Pretrained-Language-Model icon indicating copy to clipboard operation
Pretrained-Language-Model copied to clipboard

from transformer import modeling时报AttributeError: module 'cryptography.utils' has no attribute 'Enum'

Open huihuipiaomiao opened this issue 2 years ago • 0 comments

import sys sys.path.append('/path/TinyBERT/') from transformer import modeling model = modeling.TinyBertForSequenceClassification.from_pretrained('/path/chinese-roberta-wwm-ext', num_labels=num_labels)

class Encoding(utils.Enum):

AttributeError: module 'cryptography.utils' has no attribute 'Enum'

huihuipiaomiao avatar Jul 05 '22 09:07 huihuipiaomiao