Skip to content

A bug in the trainer_misc/communicate.py #242

Description

@SOTAMak1r

The number of input parameters for function forward in class _AllToAll is not equal to the number returned by backward. This will cause the following error:

RuntimeError: function _AllToAllBackward returned an incorrect number of gradients (expected 6, got 5)

Adding a new None as a return parameter to backward solves this problem.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions