Skip to content

Commit 1ade40d

Browse files
author
Diptorup Deb
committed
Address review comments.
1 parent 97707a5 commit 1ade40d

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

numba_dpex/experimental/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from .types import KernelDispatcherType
1818

1919

20-
class LiteralIntEnumModel(PrimitiveModel):
20+
class IntEnumLiteralModel(PrimitiveModel):
2121
"""Representation of an object of LiteralIntEnum type using Numba's
2222
PrimitiveModel that can be represented natively in the target in all
2323
usage contexts.
@@ -42,7 +42,7 @@ def _init_exp_data_model_manager() -> DataModelManager:
4242
dmm = dpex_core_models.dpex_data_model_manager.copy()
4343

4444
# Register the types and data model in the DpexExpTargetContext
45-
dmm.register(IntEnumLiteral, LiteralIntEnumModel)
45+
dmm.register(IntEnumLiteral, IntEnumLiteralModel)
4646

4747
return dmm
4848

numba_dpex/tests/experimental/IntEnumLiteral/test_compilation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
import dpnp
6-
from numba.core import types
7-
from numba.extending import intrinsic, overload
86

97
import numba_dpex.experimental as exp_dpex
10-
from numba_dpex import Range, dpjit
8+
from numba_dpex import Range
119
from numba_dpex.experimental.flag_enum import FlagEnum
1210

1311

0 commit comments

Comments
 (0)