From 2139bca8e1811d568c573b82596275806b8696c3 Mon Sep 17 00:00:00 2001 From: hrezaei Date: Mon, 20 Mar 2023 06:55:52 +0000 Subject: [PATCH] Add support for filtering invalid groundings out Signed-off-by: hrezaei --- lnn/symbolic/_gm.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lnn/symbolic/_gm.py b/lnn/symbolic/_gm.py index dac8bc1..d0679da 100644 --- a/lnn/symbolic/_gm.py +++ b/lnn/symbolic/_gm.py @@ -152,6 +152,8 @@ def _operational_bounds( joined = operand_dfs[0] else: joined = ft.reduce(_full_outer_join, operand_dfs) + if hasattr(operator, 'filter_valid_groundings'): + joined = operator.filter_valid_groundings(joined) operator_groundings = _operator_groundings(joined, operator) ground_objects = _operand_groundings(joined, operator, bindings)