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

fix: inconsistent shape error while training embedding layer #1125

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

lingbai-kong
Copy link
Contributor

Fixed issue #916. The bug is caused by an incorrect implicit operator that trys to convert a IndexedSlices to Tensor but only returns the values of IndexedSlices. As a result, the gradient of the embedding layer is not restored to the dense tensor and its shape is inconsistent with the shape of the parameters.

@Oceania2018 Oceania2018 merged commit 991c6b6 into SciSharp:master Jun 30, 2023
2 of 3 checks passed
@lingbai-kong lingbai-kong deleted the bug-IndexedSlices branch July 1, 2023 04:16
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