Skip to content

cross-device compute-follow-data issue for dpnp.logspace #2353

Open
@vtavana

Description

@vtavana

The following example does not work when base is defined.

>>> import dpnp
>>> x=dpnp.array([2,3,4,5], device="gpu")
>>> dpnp.logspace(1, x[2:4], 4, device="cpu")
# array([[1.00000000e+01, 1.00000000e+01],
#      [1.00000000e+02, 2.15443469e+02],
#      [1.00000000e+03, 4.64158883e+03],
#      [1.00000000e+04, 1.00000000e+05]])

>>> dpnp.logspace(x[0:2], 10, 4, device="cpu")
array([[1.00000000e+02, 1.00000000e+03],
       [4.64158883e+04, 2.15443469e+05],
       [2.15443469e+07, 4.64158883e+07],
       [1.00000000e+10, 1.00000000e+10]])

>>> dpnp.logspace(1, 10, 4, base=x[2:4], device="cpu")
File ~/dpnp/dpnp_algo/dpnp_arraycreation.py:288
ExecutionPlacementError: Execution placement can not be unambiguously inferred from input arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions