MCPcopy Create free account
hub / github.com/bytedance/InfiniStore / print_vector

Function print_vector

src/utils.cpp:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103
104template <typename T>
105void print_vector(T* ptr, size_t size) {
106 std::ostringstream oss;
107 for (size_t i = 0; i < size; ++i) {
108 oss << ptr[i] << " ";
109 }
110 INFO("vector content: {}", oss.str().c_str());
111}
112
113template void print_vector<float>(float* ptr, size_t size);
114template void print_vector<double>(double* ptr, size_t size);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected