Nothing Special   »   [go: up one dir, main page]

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

GpuMatND construction requires step.size() == size().size-1 #26471

Open
chacha21 opened this issue Nov 16, 2024 · 0 comments
Open

GpuMatND construction requires step.size() == size().size-1 #26471

chacha21 opened this issue Nov 16, 2024 · 0 comments
Labels

Comments

@chacha21
Copy link
Contributor
chacha21 commented Nov 16, 2024

Describe the feature and motivation

In the case of multidimensional array, in order to ensure that the last step will be equal to elemSize(), wrapping data in a GpuMatND::GpuMatND(data, SizeArray, StepArray) requires StepArray.size() == SizeArray.size()-1. The last step is added internally by setFields()

In my use cases, I often have to create a temporary StepArray from an existing one, remove the last step, and feed it to GpuMatND().

It would be more convenient to also support StepArray.size() == SizeArray.size() as long as the last step is valid.

I will submit a PR

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant