Skip to content

Commit

Permalink
FIX: grounding reordering for FOL Not node
Browse files Browse the repository at this point in the history
Signed-off-by: naweedkhan <[email protected]>
  • Loading branch information
NaweedAghmad committed Nov 30, 2023
1 parent c0f6332 commit 687b86c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lnn/symbolic/logic/unary_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,8 @@ def downward(self, **kwds) -> torch.Tensor:
if g not in self.operands[0]._groundings:
self.operands[0]._add_groundings(g)
bounds = self.operands[0].neuron.aggregate_bounds(
None, _utils.negate_bounds(self.get_data(*groundings))
[self.operands[0].grounding_table[_] for _ in groundings],
_utils.negate_bounds(self.get_data(*groundings))
)
if self.operands[0].is_contradiction():
self.logger.info(
Expand Down

0 comments on commit 687b86c

Please sign in to comment.