| 17 | } |
| 18 | template <typename T> |
| 19 | static 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 | } |
| 26 | template <typename T> |
| 27 | static void save_debug_tensor(const std::string& name, T* x, size_t size) { |
| 28 | _debug_map[name] = DebugTensor(copy_debug_tensor<T>(x, size)); |
nothing calls this directly
no outgoing calls
no test coverage detected