We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da2bd58 commit 08094dcCopy full SHA for 08094dc
dpnp/dpnp_iface_types.py
@@ -51,6 +51,7 @@
51
"int64",
52
"integer",
53
"isscalar",
54
+ "is_type_supported",
55
"longcomplex",
56
"nan",
57
"newaxis",
@@ -86,3 +87,14 @@ def isscalar(obj):
86
87
nan = numpy.nan
88
newaxis = None
89
void = numpy.void
90
+
91
92
+def is_type_supported(obj_type):
93
+ """
94
+ Return True if type is supported by DPNP python level.
95
96
97
+ if obj_type == float64 or obj_type == float32 or obj_type == int64 or obj_type == int32:
98
+ return True
99
100
+ return False
0 commit comments