Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

debug BERT-pytorch\bert_pytorch\model\embedding\position.py #101

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wanghesong2019 wants to merge 27 commits into codertimo:master
base: master
Choose a base branch
Loading
from wanghesong2019:master

Conversation

@wanghesong2019
Copy link

@wanghesong2019 wanghesong2019 commented Jan 20, 2023

change position.py file to debug the case : pe[:, 1::2].size(-1) is less than div_term.size(-1) when d_model is an odd number

wanghesong2019 and others added 27 commits January 20, 2023 21:02
debug bert_pytorch/dataset/vocab.py WordVocab line 130 line.repleace()
为bert_pytorch/model/embedding下的3种embedding添加注释
Copy link

@RahulVadisetty91 RahulVadisetty91 left a comment
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

The block of code under this condition is not properly indented.

Correction:
if self.corpus_lines is None and not on_memory:
for _ in tqdm.tqdm(f, desc="Loading Dataset", total=corpus_lines):
self.corpus_lines += 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@RahulVadisetty91 RahulVadisetty91 RahulVadisetty91 left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /