Skip to content

Commit 77760f2

Browse files
committed
pre-commit
1 parent 8afdf97 commit 77760f2

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

src/finchlite/compile/stages.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
from abc import abstractmethod
2+
23
from .. import finch_assembly as asm
3-
from ..symbolic import Stage
44
from .. import finch_notation as ntn
5+
from ..symbolic import Stage
6+
57

68
class 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+
"""

src/finchlite/finch_notation/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"Module",
4848
"NotationExpression",
4949
"NotationInterpreter",
50-
"NotationNode",
5150
"NotationLoader",
51+
"NotationNode",
5252
"NotationTransform",
5353
"Read",
5454
"Repack",

src/finchlite/finch_notation/interpreter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import numpy as np
77

8+
from .. import finch_assembly as asm
89
from ..algebra import (
910
Tensor,
1011
TensorFType,
@@ -14,10 +15,9 @@
1415
register_property,
1516
shape_type,
1617
)
17-
from .. import finch_assembly as asm
18-
from .stages import NotationLoader
1918
from ..symbolic import ScopedDict, fisinstance, ftype
2019
from . import nodes as ntn
20+
from .stages import NotationLoader
2121

2222

2323
class TensorViewFType(TensorFType):
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
from abc import abstractmethod
2+
23
from .. import finch_assembly as asm
34
from ..symbolic import Stage
45
from . import nodes as ntn
56

7+
68
class 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+
1316
class 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+
"""

0 commit comments

Comments
 (0)