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

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

parent b5fa988f
No related branches found
No related tags found
1 merge request!12Quantization ptq
Pipeline #32002 canceled
......@@ -43,8 +43,8 @@ public:
//find the absolute max value in the tensor, save it to registered outputs
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]);
if(std::abs(casted_tensor[i]) > max_value){
max_value = std::abs(casted_tensor[i]);
}
}
//std::cout << "call() outputRange hook : max_value = " << max_value << std::endl;
......
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