From 53586d94f862c86ed0c9bec494801f410fc472fd Mon Sep 17 00:00:00 2001 From: troyyyyy <49091847+troyyyyy@users.noreply.github.com> Date: Fri, 3 Mar 2023 21:53:06 +0800 Subject: [PATCH] Create add.pl --- examples/datasets/mnist_add/add.pl | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 examples/datasets/mnist_add/add.pl diff --git a/examples/datasets/mnist_add/add.pl b/examples/datasets/mnist_add/add.pl new file mode 100644 index 0000000..96f0869 --- /dev/null +++ b/examples/datasets/mnist_add/add.pl @@ -0,0 +1,2 @@ +pseudo_label(N) :- between(0, 9, N). +logic_forward([Z1, Z2], Res) :- pseudo_label(Z1), pseudo_label(Z2), Res is Z1+Z2.