|
30 | 30 | ) |
31 | 31 |
|
32 | 32 | from .. import _ufunc |
33 | | -from .._utils.array import calculate_volume, to_core_dtype |
| 33 | +from .._utils.array import calculate_volume, to_core_type |
34 | 34 | from .._utils.coverage import FALLBACK_WARNING, clone_class, is_implemented |
35 | 35 | from .._utils.linalg import dot_modes |
36 | 36 | from .._utils.structure import deep_apply |
@@ -128,7 +128,7 @@ def __init__( |
128 | 128 | for inp in inputs |
129 | 129 | if isinstance(inp, ndarray) |
130 | 130 | ] |
131 | | - core_dtype = to_core_dtype(dtype) |
| 131 | + core_dtype = to_core_type(dtype) |
132 | 132 | self._thunk = runtime.create_empty_thunk( |
133 | 133 | sanitized_shape, core_dtype, inputs |
134 | 134 | ) |
@@ -660,7 +660,7 @@ def __contains__(self, item: Any) -> ndarray: |
660 | 660 | args = (np.array(item, dtype=self.dtype),) |
661 | 661 | if args[0].size != 1: |
662 | 662 | raise ValueError("contains needs scalar item") |
663 | | - core_dtype = to_core_dtype(self.dtype) |
| 663 | + core_dtype = to_core_type(self.dtype) |
664 | 664 | return perform_unary_reduction( |
665 | 665 | UnaryRedCode.CONTAINS, |
666 | 666 | self, |
@@ -1975,7 +1975,7 @@ def clip( |
1975 | 1975 | return convert_to_cunumeric_ndarray( |
1976 | 1976 | self.__array__().clip(args[0], args[1]) |
1977 | 1977 | ) |
1978 | | - core_dtype = to_core_dtype(self.dtype) |
| 1978 | + core_dtype = to_core_type(self.dtype) |
1979 | 1979 | extra_args = (Scalar(min, core_dtype), Scalar(max, core_dtype)) |
1980 | 1980 | return perform_unary_op( |
1981 | 1981 | UnaryOpCode.CLIP, self, out=out, extra_args=extra_args |
@@ -2971,7 +2971,7 @@ def var( |
2971 | 2971 | # FIXME(wonchanl): the following code blocks on mu to convert |
2972 | 2972 | # it to a Scalar object. We need to get rid of this blocking by |
2973 | 2973 | # allowing the extra arguments to be Legate stores |
2974 | | - args=(Scalar(mu.__array__(), to_core_dtype(self.dtype)),), |
| 2974 | + args=(Scalar(mu.__array__(), to_core_type(self.dtype)),), |
2975 | 2975 | ) |
2976 | 2976 | else: |
2977 | 2977 | # TODO(https://github.com/nv-legate/cunumeric/issues/591) |
|
0 commit comments