Indentation Error in Code within the CvT Chapter

Open Beginner friendly
#392 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
python

Research direction

Open chapters/en/unit3/vision-transformers/cvt.mdx at lines 241–261 and inspect the forward method's indentation in the linked revision. Correct the chapter code if the indentation is wrong; it is done when the code is consistently indented and presents the method correctly.

Written by the indexing model from the issue text.

Description

While translating this chapter, I noticed that the code here seems a bit strange. Is the indentation of the forward method incorrect?

https://github.com/huggingface/computer-vision-course/blob/d5b297edd0338340858c49e175b1132af3f93a60/chapters/en/unit3/vision-transformers/cvt.mdx?plain=1#L241-L261

Dominant language
Jupyter Notebook
Stars
881
Forks
243
Avg merge
2m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from huggingface/computer-vision-course

All issues in huggingface/computer-vision-course

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.