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

(raziel): vectorize min/max calculation. #1141

Open
piascikj opened this issue Apr 27, 2018 · 0 comments
Open

(raziel): vectorize min/max calculation. #1141

piascikj opened this issue Apr 27, 2018 · 0 comments
Labels

Comments

@piascikj
Copy link
Member


opened via imdone.io from a code comment on 0b02fd4fad3cf034e8f65a518445f3e9aa5beb2c by A. Unique TensorFlower [email protected]


// TODO(raziel): vectorize min/max calculation.
auto minmax = std::minmax_element(values, values + size);
*min = *minmax.first;
*max = *minmax.second;
const int kScale = 127;
const float range = std::max(std::abs(*min), std::abs(*max));

@piascikj piascikj added the TODO label May 2, 2018
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