tensorflow/lite/toco/graph_transformations/tests/fuse_binary_into_following_affine_test.cc
// A gmock matcher that check that elements of a float vector match to a given
// tolerance.
A gmock matcher that check that elements of a float vector match to a given
tolerance.
A gmock matcher that check that elements of a float vector match to a given tolerance .
std::vector<testing::Matcher<float>> ArrayFloatNear(
    const std::vector<float>& values, float max_abs_error = 1e-5) {
  std::vector<testing::Matcher<float>> matchers;
  matchers.reserve(values.size());
  for (const float& v : values) {
    matchers.emplace_back(testing::FloatNear(v, max_abs_error));
  }
  return matchers;
}
std :: vector < testing :: Matcher < float > > ArrayFloatNear ( const std :: vector < float > & values , float max_abs_error = 1e-5 ) { std :: vector < testing :: Matcher < float > > matchers ; matchers . reserve ( values . size ( ) ) ; for ( const float & v : values ) { matchers . emplace_back ( testing :: FloatNear ( v , max_abs_error ) ) ; } return matchers ; }
A gmock matcher that check that elements of a float vector match to a given
tolerance.
A gmock matcher that check that elements of a float vector match to a given tolerance .