Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove legacy dpnp array ctor stub overloads. #1025

Merged
merged 1 commit into from
May 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions numba_dpex/core/passes/rename_numpy_functions_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,6 @@
"nansum": (["numpy"], "nansum"),
"prod": (["numpy"], "prod"),
"sum": (["numpy"], "sum"),
# array creations
"full": (["numpy"], "full"),
"ones_like": (["numpy"], "ones_like"),
"zeros_like": (["numpy"], "zeros_like"),
"full_like": (["numpy"], "full_like"),
# array ops
"copy": (["numpy"], "copy"),
"cumsum": (["numpy"], "cumsum"),
Expand Down Expand Up @@ -205,7 +200,6 @@ class RewriteOverloadedNumPyFunctionsPass(FunctionPass):
def __init__(self):
FunctionPass.__init__(self)

import numba_dpex.dpnp_iface.dpnp_array_creations_impl
import numba_dpex.dpnp_iface.dpnp_array_ops_impl
import numba_dpex.dpnp_iface.dpnp_indexing
import numba_dpex.dpnp_iface.dpnp_linalgimpl
Expand Down
268 changes: 0 additions & 268 deletions numba_dpex/dpnp_iface/dpnp_array_creations_impl.py

This file was deleted.

12 changes: 0 additions & 12 deletions numba_dpex/dpnp_iface/dpnp_fptr_interface.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ cdef extern from "dpnp_iface_fptr.hpp" namespace "DPNPFuncName": # need this na
DPNP_FN_FLOOR
DPNP_FN_FLOOR_DIVIDE
DPNP_FN_FMOD
DPNP_FN_FULL
DPNP_FN_HYPOT
DPNP_FN_INITVAL
DPNP_FN_INVERT
Expand Down Expand Up @@ -115,7 +114,6 @@ cdef extern from "dpnp_iface_fptr.hpp" namespace "DPNPFuncName": # need this na
DPNP_FN_TAKE
DPNP_FN_TAN
DPNP_FN_TANH
DPNP_FN_TRACE
DPNP_FN_TRANSPOSE
DPNP_FN_TRUNC
DPNP_FN_VAR
Expand Down Expand Up @@ -174,10 +172,6 @@ cdef DPNPFuncName get_DPNPFuncName_from_str(name):
return DPNPFuncName.DPNP_FN_EIG
if name == "dpnp_exponential":
return DPNPFuncName.DPNP_FN_RNG_EXPONENTIAL
if name == "dpnp_full_like":
return DPNPFuncName.DPNP_FN_INITVAL
if name == "dpnp_full":
return DPNPFuncName.DPNP_FN_FULL
if name == "dpnp_gamma":
return DPNPFuncName.DPNP_FN_RNG_GAMMA
if name == "dpnp_geometric":
Expand Down Expand Up @@ -210,8 +204,6 @@ cdef DPNPFuncName get_DPNPFuncName_from_str(name):
return DPNPFuncName.DPNP_FN_RNG_NEGATIVE_BINOMIAL
if name == "dpnp_normal":
return DPNPFuncName.DPNP_FN_RNG_NORMAL
if name == "dpnp_ones_like":
return DPNPFuncName.DPNP_FN_INITVAL
if name == "dpnp_partition":
return DPNPFuncName.DPNP_FN_PARTITION
if name == "dpnp_poisson":
Expand All @@ -236,16 +228,12 @@ cdef DPNPFuncName get_DPNPFuncName_from_str(name):
return DPNPFuncName.DPNP_FN_SUM
if name == "dpnp_take":
return DPNPFuncName.DPNP_FN_TAKE
if name == "dpnp_trace":
return DPNPFuncName.DPNP_FN_TRACE
if name == "dpnp_uniform":
return DPNPFuncName.DPNP_FN_RNG_UNIFORM
if name == "dpnp_vdot":
return DPNPFuncName.DPNP_FN_DOT
if name == "dpnp_weibull":
return DPNPFuncName.DPNP_FN_RNG_WEIBULL
if name == "dpnp_zeros_like":
return DPNPFuncName.DPNP_FN_INITVAL

raise ValueError("Unknown dpnp function requested: " + name.split("_")[1])

Expand Down
15 changes: 0 additions & 15 deletions numba_dpex/dpnp_iface/stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ class eigvals(Stub):
class exponential(Stub):
pass

class full_like(Stub):
pass

class full(Stub):
pass

class gamma(Stub):
pass

Expand Down Expand Up @@ -136,9 +130,6 @@ class negative_binomial(Stub):
class normal(Stub):
pass

class ones_like(Stub):
pass

class partition(Stub):
pass

Expand Down Expand Up @@ -196,9 +187,6 @@ class sum(Stub):
class take(Stub):
pass

class trace(Stub):
pass

class uniform(Stub):
pass

Expand All @@ -207,6 +195,3 @@ class vdot(Stub):

class weibull(Stub):
pass

class zeros_like(Stub):
pass