Skip to content
Snippets Groups Projects
Commit df7e51b1 authored by Maxence Naud's avatar Maxence Naud Committed by Inna Kucher
Browse files

Apply 1 suggestion(s) to 1 file(s)

parent fc250a89
No related branches found
No related tags found
1 merge request!12Quantization ptq
Pipeline #31999 passed
......@@ -41,7 +41,7 @@ public:
float max_value = 0.;
float * casted_tensor = static_cast<float *>(tensor->getImpl()->rawPtr());
//find the absolute max value in the tensor, save it to registered outputs
for(size_t i = 0; i<tensor->size(); i++) {
for(std::size_t i = 0; i < tensor->size(); ++i) {
//std::cout << "call() outputRange hook : casted_tensor[i] = " << casted_tensor[i] << std::endl;
if(abs(casted_tensor[i]) > max_value){
max_value = abs(casted_tensor[i]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment