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

Introduce GpuMatT for ALL [Input]OutputArrays #203

Open
shrubb opened this issue Mar 31, 2018 · 0 comments
Open

Introduce GpuMatT for ALL [Input]OutputArrays #203

shrubb opened this issue Mar 31, 2018 · 0 comments

Comments

@shrubb
Copy link
Contributor

shrubb commented Mar 31, 2018

Currently:

struct TensorWrapper gammaCorrectionCuda(struct cutorchInfo info,
        struct TensorWrapper src, struct TensorWrapper dst, bool forward)
{
    cuda::GpuMat retval = dst.toGpuMat();
    cuda::gammaCorrection(src.toGpuMat(), retval, forward, prepareStream(info));
    return TensorWrapper(retval, info.state);
}

Need (everywhere!):

struct TensorWrapper gammaCorrectionCuda(struct cutorchInfo info,
        struct TensorWrapper src, struct TensorWrapper dst, bool forward)
{
    GpuMatT retval = dst.toGpuMatT();
    cuda::gammaCorrection(src.toGpuMat(), retval, forward, prepareStream(info));
    return TensorWrapper(retval, info.state);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant