Skip to content

Undefined name: f --> bare except #66

Closed

Description

@cclauss

https://github.com/microsoft/DeepSpeed/blob/master/tests/model/Megatron_GPT2/run_checkpoint_test.py#L113-L115

The variable f is an undefined name in this context. This will raise a NameError which will be caught by the bare except and No old checkpoint will be printed. How should f be defined?

Activity

  1. ShadenSmith commented on Feb 12, 2020

    @ShadenSmith
    Contributor

    Hello! Thank you for reporting this. We submitted a quick fix and in the meantime I am working on the bare except that is another issue as you pointed out.

    Thanks for catching this!

  2. added a commit that references this issue on Aug 28, 2020
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions