Skip to content

Commit

Permalink
Rename impl
Browse files Browse the repository at this point in the history
  • Loading branch information
adityagoel4512 committed Aug 1, 2024
1 parent 1c0cac9 commit 6f47d5d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ndonnx/_core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ._numericimpl import NumericOperationsImpl
from ._stringimpl import StringOperationsImpl
from ._boolimpl import BooleanOperationsImpl
from ._interface import OperationsBlock
from ._default import OperationsBlock

__all__ = [
"NumericOperationsImpl",
Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_core/_boolimpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import ndonnx._data_types as dtypes
import ndonnx._opset_extensions as opx

from ._interface import OperationsBlock
from ._default import OperationsBlock
from ._utils import binary_op, unary_op

if TYPE_CHECKING:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ndonnx/_core/_numericimpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import ndonnx._opset_extensions as opx
from ndonnx._utility import promote

from ._interface import OperationsBlock
from ._default import OperationsBlock
from ._utils import (
binary_op,
from_corearray,
Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_core/_stringimpl.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import ndonnx._data_types as dtypes
import ndonnx._opset_extensions as opx

from ._interface import OperationsBlock
from ._default import OperationsBlock
from ._utils import binary_op

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion ndonnx/_data_types/structtype.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import numpy as np
import typing_extensions

from ndonnx._core._interface import OperationsBlock
from ndonnx._core._default import OperationsBlock
from ndonnx._data_types.coretype import CoreType

from .schema import Schema
Expand Down
4 changes: 3 additions & 1 deletion ndonnx/_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,9 @@ def where(condition, x, y):

# set.py
def unique_all(x: Array):
return x.dtype._ops.unique_all(x)
if (out := x.dtype._ops.unique_all(x)) is not NotImplemented:
return out
raise UnsupportedOperationError(f"Unsupported operand type for unique: '{x.dtype}'")


def unique_counts(x):
Expand Down

0 comments on commit 6f47d5d

Please sign in to comment.