Skip to content
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

[BUG] fix mindspore bugs #198

Merged
merged 7 commits into from
May 18, 2024
Merged

[BUG] fix mindspore bugs #198

merged 7 commits into from
May 18, 2024

Conversation

xy-Ji
Copy link
Contributor

@xy-Ji xy-Ji commented Apr 9, 2024

Description

Checklist

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [$CATEGORY] (such as [NN], [Model], [Doc], [Feature]])
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage
  • Code is well-documented
  • To the best of my knowledge, examples are either not affected by this change,
    or have been fixed to be compatible with this change
  • Related issue is referred in this PR

Changes

@@ -81,7 +81,8 @@ def forward(self, x, edge_index, edge_weight=None, num_nodes=None):
edge_weight = tlx.ones(shape=(edge_index.shape[1], 1))
edge_weight = tlx.reshape(edge_weight,(-1,))
weights = edge_weight
num_nodes = tlx.reduce_max(edge_index) + 1
# num_nodes = tlx.reduce_max(edge_index) + 1
num_nodes = x.shape[0]
Copy link
Contributor

Choose a reason for hiding this comment

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

确认一下多后端兼容性问题,查看get_tensor_shape()接口

@gyzhou2000 gyzhou2000 merged commit edcc164 into BUPT-GAMMA:main May 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants