MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ExpectEqual

Method ExpectEqual

tensorflow/core/framework/op_kernel_test.cc:152–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 void ExpectEqual(const string& what, const DataTypeVector& expected,
153 const DataTypeVector& observed) {
154 EXPECT_EQ(expected.size(), observed.size()) << what;
155 const size_t size = std::min(expected.size(), observed.size());
156 for (size_t i = 0; i < size; ++i) {
157 bool match = TypesCompatible(expected[i], observed[i]);
158 EXPECT_TRUE(match) << what << " i:" << i << ", expected: " << expected[i]
159 << ", observed: " << observed[i];
160 }
161 }
162
163 void ExpectSuccess(const string& op_type, DeviceType device_type,
164 const DataTypeVector& inputs,

Callers

nothing calls this directly

Calls 3

TypesCompatibleFunction · 0.85
minFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected