Skip to content

SoftMaxTree.parameters breaks optim.checkgrad? #49

@hughperkins

Description

@hughperkins

If I run optim.checkgrad, it fails, because the tensors returned by SoftMaxTree.parmeters are not actually the underlying smt.weight, and smt.gradWeigth tensor.

If I do SoftMaxTree.parameters = nil, thne grad check works, for both gradInput and gradWeight.

But SoftMaxTree.parameters looks like a lot of work went into it. So I guess it is there for some reason, and I'm just not understanding how it should be used?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions