Skip to content

loss functions targets shouldn't have to declare requires_grad = False #41

@soumith

Description

@soumith

Basic losses like NLLLoss and CELoss need to accept targets that dont have requires_grad = False or volatile = True. Targets being backprop-less is the most common case, and we should default to that.

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