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

Function print_simpletensor

tests/SimpleTensorPrinter.h:150–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148#if PRINT_TENSOR_LIMIT
149template <typename T>
150void print_simpletensor(const SimpleTensor<T> &tensor,
151 const std::string &title,
152 const IOFormatInfo::PrintRegion &region = IOFormatInfo::PrintRegion::NoPadding)
153{
154 if (tensor.num_elements() < PRINT_TENSOR_LIMIT)
155 {
156 std::cout << title << ":" << std::endl;
157 std::cout << prettify_tensor(tensor, IOFormatInfo{region});
158 }
159}
160#endif // PRINT_TENSOR_LIMIT
161} // namespace test
162} // namespace arm_compute

Callers

nothing calls this directly

Calls 2

prettify_tensorFunction · 0.85
num_elementsMethod · 0.45

Tested by

no test coverage detected