MCPcopy Create free account
hub / github.com/andrewkchan/deepseek.cpp / copy_debug_tensor

Function copy_debug_tensor

src/infer.cpp:19–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17}
18template <typename T>
19static std::vector<T> copy_debug_tensor(T* x, size_t size) {
20 std::vector<T> out(size);
21 for (size_t i = 0; i < size; i++) {
22 out[i] = x[i];
23 }
24 return out;
25}
26template <typename T>
27static void save_debug_tensor(const std::string& name, T* x, size_t size) {
28 _debug_map[name] = DebugTensor(copy_debug_tensor<T>(x, size));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected