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

Class DebugTensor

src/model.h:482–497  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480
481#if DEBUG_MODEL
482struct DebugTensor {
483 enum struct DataType {
484 F32,
485 F16,
486 };
487
488 DebugTensor() = default;
489 DebugTensor(const std::vector<float>& data);
490 DebugTensor(const std::vector<f16_t>& data);
491 DebugTensor& operator=(const DebugTensor& other) = default;
492 float max_err(const DebugTensor& other) const;
493
494 std::vector<float> data_f32;
495 std::vector<f16_t> data_f16;
496 DataType data_type;
497};
498std::map<std::string, DebugTensor>& debug_map_cpu();
499void dump_debug_map(const std::string& filename);
500void dump_debug_map_as_safetensors(const std::string& filename);

Callers 1

save_debug_tensorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected