{ "owner": "pytorch", "repo": "examples", "number": 1175, "html_url": "https://github.com/pytorch/examples/issues/1175", "is_pull_request": false, "state": "closed", "state_reason": "completed", "title": "`vision_transformer` `num_classes` 16 instead 10 for CIFAR10 dataset.", "author": "ninfueng", "created_at": "2023-07-26T04:10:05Z", "updated_at": "2023-07-30T07:21:47Z", "closed_at": "2023-07-30T07:21:47Z", "labels": [], "milestone": null, "comments_count": 2, "reactions": { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 }, "resolution_days": 4.13, "fix": { "closing_commit": null, "linked_prs": [], "best_guess_fix_commit": null, "has_fix": false }, "fetched_at": "2026-07-28T12:21:56.961761+00:00", "comments": [ { "author": "ninfueng", "created_at": "2023-07-27T06:46:19Z", "body": "By the way, I found an another similar problem as below:\r\n \r\nhttps://github.com/pytorch/examples/blob/6fc19c76b9f5550d8d3cb38284845ac7ed14223c/vision_transformer/main.py#L220C1-L221C47\r\n\r\nThe default `num_heads` should be 16 (same as the `help`) or the value in `help` should be 12 (same as the default value)." }, { "author": "ninfueng", "created_at": "2023-07-30T07:21:47Z", "body": "The fix seems to be merged in #1176, so I should close this issue. Note that the issue from the previous comment `num_heads` is still here." } ] }