microsoft / microsoft/Graphormer
preprocess_item()中入度求解问题
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 2.5k
- Forks
- 374
- PR merge metrics
- No merged PRs in 30d
Description
wrapper.py line 53中的preprocess_item()中
item.in_degree = adj.long().sum(dim=1).view(-1)
如果是为了求入度, 是否应该是dim=0? (不过本例中都是无向图, 所以没有出错.)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at graphormer/data/wrapper.py line 53 in preprocess_item() and inspect how adj is constructed and how directed graphs are represented. Verify which dimension computes in-degree, then check that the result remains correct for the undirected graphs used in the current example. Done means the implementation matches the intended in-degree definition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100