Skip to content

Commit 5fc185f

Browse files
committed
we don't always have to run forward of parameter in left matmul
1 parent 36b8ed9 commit 5fc185f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/atoms/affine/left_matmul.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static void forward(expr *node, const double *u)
6767
/* Always call forward on param_source if it exists */
6868
/* Should we also adopt a convention that left_matmul always
6969
points to a param_source, even if its constant? */
70-
if (lnode->param_source != NULL)
70+
if (lnode->param_source != NULL && lnode->base.needs_parameter_refresh)
7171
{
7272
lnode->param_source->forward(lnode->param_source, NULL);
7373
}

0 commit comments

Comments
 (0)