MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / validate_result

Method validate_result

examples/cl_cache.cpp:107–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106private:
107 void validate_result(CLTensor &reference, CLTensor &result)
108 {
109 reference.map();
110 result.map();
111 Window window;
112 window.use_tensor_dimensions(reference.info()->tensor_shape());
113 Iterator it_ref(&reference, window);
114 Iterator it_res(&result, window);
115 execute_window_loop(
116 window,
117 [&](const Coordinates &) {
118 assert(*reinterpret_cast<unsigned char *>(it_ref.ptr()) ==
119 *reinterpret_cast<unsigned char *>(it_res.ptr()));
120 },
121 it_ref, it_res);
122 reference.unmap();
123 result.unmap();
124 }
125
126 void fill_tensor(CLTensor &tensor)
127 {

Callers

nothing calls this directly

Calls 4

mapMethod · 0.45
infoMethod · 0.45
ptrMethod · 0.45
unmapMethod · 0.45

Tested by

no test coverage detected