Skip to content

ignore amp.scale_loss() #377

@jizongFox

Description

@jizongFox

Hi all,
Thanks for this wonderful work, it is very useful for my current project.
I am using apex with only one GPU, I am wondering if in this case,
with amp.scale_loss(loss, optimizer) as loss: loss.barckward()
can be replaced by the conventional one:
optimizer.zero() loss.backward() optimizer.step()
Thanks by advance for your reply.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions