Skip to content

Conversation

@justinmcgrath
Copy link

@justinmcgrath justinmcgrath commented Mar 1, 2018

This is mostly done by the optimizer, but it helps a little bit here.

Below is the fastest way, but it requires changing the order of the dimensions, so it would probably break older code.

    for (size_t i = 0; i < last_index; ++i) {
        data[i] = ((double) image[i]) / 255.0;

This is mostly don't by the optimizer, but it helps a little bit here.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant