We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36b8ed9 commit 5fc185fCopy full SHA for 5fc185f
1 file changed
src/atoms/affine/left_matmul.c
@@ -67,7 +67,7 @@ static void forward(expr *node, const double *u)
67
/* Always call forward on param_source if it exists */
68
/* Should we also adopt a convention that left_matmul always
69
points to a param_source, even if its constant? */
70
- if (lnode->param_source != NULL)
+ if (lnode->param_source != NULL && lnode->base.needs_parameter_refresh)
71
{
72
lnode->param_source->forward(lnode->param_source, NULL);
73
}
0 commit comments