Closed LukasZahradnik closed 2 weeks ago
Fixed the parser and added a test case in 899b233. The problem was the right-hand side fact not having parentheses, which is a test case that I missed.
However, there's another bug further down the pipeline, for which the fix will not be as easy. I will have to do that some other time.
Did a quick fix in 45d6d6a. Should probably make a test case for it.
Also: don't forget to always use neuralogic settings with chain_pruning=False, iso_value_compression=False
! The compiler has its own versions of these optimizations. If you use the Java ones, it might break the vectorizer. @LukasZahradnik
The addition of the following lines https://github.com/neumannjan/nn-structural-graph-vectorizer-compiler/blob/45d6d6a2713a1ee7453fef1f3783de5c23b82f7d/src/compute_graph_vectorize/vectorize/pipeline/separate_input_refs.py#L188-L190 is the core of the fix.
@LukasZahradnik
Another note:
The optimizer=
+ epochs=
parameters in NeuraLogic Settings()
are ignored, as you need to write the training pipeline for ptrch
in PyTorch directly yourself (as you would in PyTorch normally). ptrch
is untrained.
I only wanted to try out inference without any training, so settings are fine. The PyNeuraLogic integration handles settings for the user soiso compression and pruning is turned off. Settings in the code above are irrelevant for vectorizer
Hi, I tried to use vectorizer compiler by integrating it into PyNeuraLogic and got some errors on simple templates. For example this one: