#include "components/assist_ranker/quantized_nn_classifier.h"
#include "components/assist_ranker/nn_classifier.h"
#include "components/assist_ranker/nn_classifier_test_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace assist_ranker {
namespace quantized_nn_classifier {
namespace {
RepeatedFieldBackInserter;
RepeatedPtrField;
copy;
vector;
void CreateLayer(const vector<int>& biases,
const vector<vector<int>>& weights,
float low,
float high,
QuantizedNNLayer* layer) { … }
QuantizedNNClassifierModel CreateModel(
const vector<int>& hidden_biases,
const vector<vector<int>>& hidden_weights,
const vector<int>& logits_biases,
const vector<vector<int>>& logits_weights,
float low,
float high) { … }
TEST(QuantizedNNClassifierTest, Dequantize) { … }
TEST(QuantizedNNClassifierTest, XorTest) { … }
TEST(QuantizedNNClassifierTest, ValidateQuantizedNNClassifierModel) { … }
}
}
}