Skip to content

multiplication operation does not work w/o numpy fallback #1238

Closed
@DenisScherbakov

Description

@DenisScherbakov

Here is an example:

import dpnp
dtype = dpnp.float64
a = dpnp.array([[0.1, 0.2, 0.3],[0.4, 0.5, 0.6]], dtype=dtype)
a = a * -2
print(a)

Output is:

File "dpnp/dpnp_utils/dpnp_algo_utils.pyx", line 120, in dpnp.dpnp_utils.dpnp_algo_utils.call_origin
NotImplementedError: Requested funtion=multiply with args=(<dpnp.dpnp_array.dpnp_array object at 0x7f606e66cfa0>, -2) and
 kwargs={'dtype': None, 'out': None, 'where': True} isn't currently supported and would fall back on NumPy implementation. Define 
enviroment variable `DPNP_RAISE_EXCEPION_ON_NUMPY_FALLBACK` to `0` if the fall back is required to be supported without rasing 
an exception.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions