ref: 55a2abfe31b82af13a77c3dc89913774f667b898
parent: 8fd4b154348f0b0222f8a1b3d62f50a94715a735
parent: 693c9a70f056289aa56fda3fa59576fbdb836519
author: Hui Su <huisu@google.com>
date: Mon Jun 11 14:07:18 EDT 2018
Merge "Small speedup of ml_pruning_partition()"
--- a/vp9/encoder/vp9_encodeframe.c
+++ b/vp9/encoder/vp9_encodeframe.c
@@ -3305,6 +3305,7 @@
linear_weights = &partition_linear_weights[offset];
linear_score = linear_weights[7];
for (i = 0; i < 7; ++i) linear_score += linear_weights[i] * features[i];
+ if (linear_score > 0.1f) return 0;
// Predict using neural net model.
nn_predict(features, nn_config, &nn_score);