Skip to content

Commit

Permalink
weavify
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewtruong committed Aug 22, 2024
1 parent 48994a0 commit 2cb5288
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion weave/legacy/decorator_op.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def wrap(f: Callable[P, R]) -> Callable[P, R]:
mutation=mutation,
)
if weavify:
from weave.weavify import op_to_weave_fn
from weave.legacy.weavify import op_to_weave_fn

op.weave_fn = op_to_weave_fn(op)

Expand Down
2 changes: 1 addition & 1 deletion weave/legacy/ops_arrow/vectorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
errors,
registry_mem,
weave_internal,
weavify,
)
from weave.legacy import weavify
from weave import weave_types as types
from weave.query_api import op, use
from weave.legacy import dispatch, graph, graph_debug, op_args, op_def
Expand Down
4 changes: 2 additions & 2 deletions weave/weavify.py → weave/legacy/weavify.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from weave.legacy import graph, op_args, val_const

from . import errors, weave_internal
from . import weave_types as types
from .. import errors, weave_internal
from .. import weave_types as types

if typing.TYPE_CHECKING:
from weave.legacy import op_def
Expand Down
3 changes: 2 additions & 1 deletion weave/tests/legacy/test_weavify.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

from weave.legacy import graph, ops

from ... import weave_internal, weavify
from ... import weave_internal
from ... import weave_types as types
from ...legacy import weavify
from .. import geom


Expand Down

0 comments on commit 2cb5288

Please sign in to comment.