Skip to content

Commit ec0bbae

Browse files
committed
small fix
1 parent 2ae1ba1 commit ec0bbae

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

src/finchlite/finch_logic/stages.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from abc import ABC, abstractmethod
22

3-
from finchlite.algebra.tensor import TensorFType
3+
from ..algebra import TensorFType
4+
from ..finch_assembly import AssemblyLibrary
45

56
from .. import finch_notation as ntn
67
from ..symbolic import Stage
@@ -15,6 +16,17 @@ def __call__(self, term: lgc.LogicNode, bindings: dict[lgc.Alias, lgc.TableValue
1516
"""
1617

1718

19+
class LogicLoader(ABC):
20+
@abstractmethod
21+
def __call__(
22+
self, term: lgc.LogicNode, bindings: dict[lgc.Alias, TensorFType]
23+
) -> AssemblyLibrary:
24+
"""
25+
Generate Finch Library from the given logic and input types,
26+
with a single method called main which implements the logic.
27+
"""
28+
29+
1830
class LogicLowerer(ABC):
1931
@abstractmethod
2032
def __call__(

0 commit comments

Comments
 (0)