codertimo / codertimo/BERT-pytorch

An error occurred【AttributeError: type object 'BERT' has no attribute 'hidden'】

Open
#87 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
6.5k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

class BERTLM:self.next_sentence = NextSentencePrediction(self.bert.hidden)
This error appeared when I ran: 【AttributeError: type object 'BERT' has no attribute 'hidden'】
How to deal with it? Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.