From 76c4ad429b2075098ba7e5c0fbf631a504201a31 Mon Sep 17 00:00:00 2001 From: Ricardo Vieira <28983449+ricardoV94@users.noreply.github.com> Date: Tue, 17 Sep 2024 23:41:43 +0200 Subject: [PATCH] Fix typo in error message --- pytensor/compile/builders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytensor/compile/builders.py b/pytensor/compile/builders.py index f9b9295ff5..ff0b742975 100644 --- a/pytensor/compile/builders.py +++ b/pytensor/compile/builders.py @@ -355,7 +355,7 @@ def __init__( var_counts = {var: inputs.count(var) for var in inputs} duplicated_inputs = [var for var, count in var_counts.items() if count > 1] raise ValueError( - f"There following variables were provided more than once as inputs to the OpFromGraph, resulting in an " + f"The following variables were provided more than once as inputs to the OpFromGraph, resulting in an " f"invalid graph: {duplicated_inputs}. Use dummy variables or var.copy() to distinguish " f"variables when creating the OpFromGraph graph." )