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

Function CheckAlloc

tensorflow/core/common_runtime/partitioning_utils_test.cc:162–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162void CheckAlloc(const std::vector<bool>& expected,
163 const std::vector<AllocatorAttributes>& actual) {
164 ASSERT_EQ(expected.size(), actual.size());
165 for (int i = 0; i < expected.size(); ++i) {
166 ASSERT_EQ(expected[i], actual[i].on_host()) << " at index " << i;
167 }
168}
169
170void CheckIndex(const Node& node, int expected_index) {
171 const AttrValue* attr_value;

Callers 1

TEST_FFunction · 0.85

Calls 2

sizeMethod · 0.45
on_hostMethod · 0.45

Tested by

no test coverage detected