Skip to content

Commit 2139bca

Browse files
committed
Add support for filtering invalid groundings out
Signed-off-by: hrezaei <[email protected]>
1 parent 2382067 commit 2139bca

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lnn/symbolic/_gm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ def _operational_bounds(
152152
joined = operand_dfs[0]
153153
else:
154154
joined = ft.reduce(_full_outer_join, operand_dfs)
155+
if hasattr(operator, 'filter_valid_groundings'):
156+
joined = operator.filter_valid_groundings(joined)
155157

156158
operator_groundings = _operator_groundings(joined, operator)
157159
ground_objects = _operand_groundings(joined, operator, bindings)

0 commit comments

Comments
 (0)