Skip to main content

DebugTypes.h File

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
structDebugOutput
structDebugStream
structOutputTag
structStreamTag

File Listing

The file content with the documentation metadata removed is:

1#pragma once
2
3#include "builder/OutputSpec.h"
5
6#include <functional>
7#include <memory>
8#include <optional>
9#include <string>
10#include <vector>
11
13
15 int timeout_ms = 10000;
16 bool strict = false;
17 bool force_system_memory = true;
18};
19
20struct DebugOutput {
21 OutputSpec expected;
22 OutputSpec observed;
23 std::string caps_string;
24 bool tensorizable = false;
25 bool unknown = false;
26 std::vector<std::string> warnings;
27 std::optional<simaai::neat::Tensor> tensor; // owning tensor (when available)
28 std::vector<uint8_t> bytes; // raw bytes for non-tensorizable outputs
29};
30
31struct DebugStream {
32 std::function<std::optional<DebugOutput>(int)> next;
33 std::function<void()> close;
34 OutputSpec expected;
35 OutputSpec observed;
36 std::string caps_string;
37 bool tensorizable = false;
38 bool unknown = false;
39 std::shared_ptr<void> state; // keeps underlying pipeline/stream alive
40
41 explicit operator bool() const {
42 return static_cast<bool>(next);
43 }
44};
45
46struct OutputTag {};
47struct StreamTag {};
48
49inline constexpr OutputTag output{};
50inline constexpr StreamTag stream{};
51
52} // namespace simaai::neat::debug

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.