Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Why stop_gradient operator is used in diffstride? #1

Description

@LEEYOONHYUNG

Firstly, I want to appreciate for sharing great work with other researchers.

I write this issue because I have a question about using the stop_gradient operator.

When I saw other usages of the stop_gradient operator, they were usually used to prevent the gradient from flowing to the graph.

However, I think that the stop_gradient operator might be unnecessarily used in diffstride because the cropping operation is originally not differentiable.

Do I understand it correctly? If I misunderstand it, please give me some advice about it.

Thank you.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions