Skip to main content

DebugTypes.h File

Developer-facing debug types used by introspective dump helpers. More...

Included Headers

#include "builder/OutputSpec.h" #include "pipeline/TensorCore.h" #include <functional> #include <memory> #include <optional> #include <string> #include <vector>

Namespaces Index

namespacesimaai
namespaceneat
namespacedebug

Classes Index

structDebugOptions

Tunables for debug-mode pipeline dumps. More...

structDebugOutput

One captured pipeline output (single-shot dump result). More...

structDebugStream

Streaming iterator over debug-mode pipeline outputs. More...

structOutputTag

Tag type selecting the single-output dump overload. More...

structStreamTag

Tag type selecting the streaming-output dump overload. More...

Description

Developer-facing debug types used by introspective dump helpers.

The simaai::neat::debug namespace exposes types used by debug-mode dump APIs that snapshot or stream individual pipeline outputs. DebugOptions tunes the behaviour (timeout, strictness, memory placement); DebugOutput carries the result of a one-shot dump; DebugStream returns a callable iterator over outputs from a long-running pipeline. Tag types are used as overload selectors for the dump entry points.

See Also

builder::OutputSpec for the spec/observed contract types.

File Listing

The file content with the documentation metadata removed is:

1
15#pragma once
16
17#include "builder/OutputSpec.h"
19
20#include <functional>
21#include <memory>
22#include <optional>
23#include <string>
24#include <vector>
25
27
34 int timeout_ms = 10000;
35 bool strict = false;
36 bool force_system_memory = true;
37};
38
49struct DebugOutput {
50 OutputSpec expected;
51 OutputSpec observed;
52 std::string caps_string;
53 bool tensorizable = false;
54 bool unknown = false;
55 std::vector<std::string> warnings;
56 std::optional<simaai::neat::Tensor> tensor;
57 std::vector<uint8_t> bytes;
58};
59
71struct DebugStream {
72 std::function<std::optional<DebugOutput>(int)> next;
73 std::function<void()> close;
74 OutputSpec expected;
75 OutputSpec observed;
76 std::string caps_string;
77 bool tensorizable = false;
78 bool unknown = false;
79 std::shared_ptr<void> state;
80
82 explicit operator bool() const {
83 return static_cast<bool>(next);
84 }
85};
86
88struct OutputTag {};
90struct StreamTag {};
91
93inline constexpr OutputTag output{};
95inline constexpr StreamTag stream{};
96
97} // namespace simaai::neat::debug

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.