File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 11from abc import abstractmethod
2+
23from .. import finch_assembly as asm
3- from ..symbolic import Stage
44from .. import finch_notation as ntn
5+ from ..symbolic import Stage
6+
57
68class NotationLowerer (Stage ):
79 @abstractmethod
810 def __call__ (self , term : ntn .Module ) -> asm .Module :
911 """
1012 Compile the given notation term into an assembly term.
11- """
13+ """
Original file line number Diff line number Diff line change 4747 "Module" ,
4848 "NotationExpression" ,
4949 "NotationInterpreter" ,
50- "NotationNode" ,
5150 "NotationLoader" ,
51+ "NotationNode" ,
5252 "NotationTransform" ,
5353 "Read" ,
5454 "Repack" ,
Original file line number Diff line number Diff line change 55
66import numpy as np
77
8+ from .. import finch_assembly as asm
89from ..algebra import (
910 Tensor ,
1011 TensorFType ,
1415 register_property ,
1516 shape_type ,
1617)
17- from .. import finch_assembly as asm
18- from .stages import NotationLoader
1918from ..symbolic import ScopedDict , fisinstance , ftype
2019from . import nodes as ntn
20+ from .stages import NotationLoader
2121
2222
2323class TensorViewFType (TensorFType ):
Original file line number Diff line number Diff line change 11from abc import abstractmethod
2+
23from .. import finch_assembly as asm
34from ..symbolic import Stage
45from . import nodes as ntn
56
7+
68class NotationLoader (Stage ):
79 @abstractmethod
810 def __call__ (self , term : ntn .Module ) -> asm .AssemblyLibrary :
911 """
1012 Load the given notation program into a runnable module.
1113 """
1214
15+
1316class NotationTransform (Stage ):
1417 @abstractmethod
1518 def __call__ (self , term : ntn .Module ) -> ntn .Module :
1619 """
1720 Transform the given assembly term into another assembly term.
18- """
21+ """
You can’t perform that action at this time.
0 commit comments