Skip to content

Gradients with State effect and slice indices #587

@srush

Description

@srush

In the CKY implementation in #586 when I try to take a gradient I get the error ->

Can't differentiate wrt type (Ref h' ((tmp77<..) => Float32))
CallStack (from HasCallStack):
error, called at src/lib/Autodiff.hs:402:23 in dex-0.1.0.0-1c1KJ1laoEjKvvidxV1QZ9:Autodiff

I think this is an okay thing to do. I've been able to use State and grad together before. But I think the slice indexing breaks it.

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