Skip to content

All gradients are zero for synflow #11

@jackmvision

Description

@jackmvision

I was using synflow for my resnet like model for a classification problem. I found that all gradients of the masked_parameters are zeros. Any ideas why it happens?

self.scores[id(p)] = torch.clone(p.grad * p).detach().abs_()

p is not zero but p.grad is always zero. Thanks!

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