Skip to content

Unsupported operation when using CUDA #1532

@salbert83

Description

@salbert83

Motivation and description

UnsupportedOpWithCUDA.txt

The attached is actually a jupyter notebook, but I saved with a .txt extension to upload.

In summary, I defined two functions
f₁(x) = sum(abs2, exp.(log.(x) .* (1:length(x))))
f₂(x) = sum(abs2, x.^(1:length(x)))

Their gradients agree on the CPU. When the argument is on the GPU, the first function's gradient is consistent with the CPU calculation, the later function throws an exception.

Possible Implementation

No response

Metadata

Metadata

Assignees

No one assigned

    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