Skip to content

Trouble with custom factor #16

Answered by contagon
dwuertz asked this question in Q&A
Nov 13, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Thanks for reaching out! Easy fix, ForwardProp is generic on the dimension of the input, so it should be ForwardProp<Const<3>> instead of ForwardProp<Const<2>>. I'm going to do some thinking as well, as it would be nice if we caught this earlier on rather than just barfing like this...

Alternatively to make sure it doesn't happen again, you can also do type Differ = ForwardProp<<Self as Residual1>::DimIn>;

Let me know if that fixes it, or if you hit any other snags! factrs is under pretty heavy development still, so if you see anything you'd like/need let us know

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@contagon
Comment options

Answer selected by contagon
Comment options

You must be logged in to vote
2 replies
@contagon
Comment options

@contagon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants