Skip to main content

ConversionTrace Struct

Single audit-log entry for a conversion that occurred. More...

Declaration

struct simaai::neat::ConversionTrace { ... }

Included Headers

#include <TensorConversion.h>

Public Member Attributes Index

std::stringstage

Which stage/Node performed the conversion. More...

ConversionKindkind = ConversionKind::Reinterpret

What kind of conversion occurred. More...

std::stringsrc_desc

Human description of the source tensor (e.g., "FP32 HWC 1×640×640×3 CPU"). More...

std::stringdst_desc

Human description of the destination tensor. More...

std::uint64_tbytes_copied = 0

Bytes actually moved. More...

std::uint64_telapsed_us = 0

Wall-clock time spent on the conversion. More...

ConversionPolicypolicy = ConversionPolicy::Strict

Policy that authorized the conversion. More...

Description

Single audit-log entry for a conversion that occurred.

Collected into a ConversionTraceCollector when policy is AllowWithTrace. Useful for tools that want to verify a pipeline doesn't introduce hidden expensive conversions.

Definition at line 66 of file TensorConversion.h.

Public Member Attributes

bytes_copied

std::uint64_t simaai::neat::ConversionTrace::bytes_copied = 0

Bytes actually moved.

Definition at line 72 of file TensorConversion.h.

72 std::uint64_t bytes_copied = 0;

dst_desc

std::string simaai::neat::ConversionTrace::dst_desc

Human description of the destination tensor.

Definition at line 71 of file TensorConversion.h.

71 std::string dst_desc;

elapsed_us

std::uint64_t simaai::neat::ConversionTrace::elapsed_us = 0

Wall-clock time spent on the conversion.

Definition at line 73 of file TensorConversion.h.

73 std::uint64_t elapsed_us = 0;

kind

ConversionKind simaai::neat::ConversionTrace::kind = ConversionKind::Reinterpret

What kind of conversion occurred.

Definition at line 68 of file TensorConversion.h.

policy

ConversionPolicy simaai::neat::ConversionTrace::policy = ConversionPolicy::Strict

Policy that authorized the conversion.

Definition at line 74 of file TensorConversion.h.

src_desc

std::string simaai::neat::ConversionTrace::src_desc

Human description of the source tensor (e.g., "FP32 HWC 1×640×640×3 CPU").

Definition at line 70 of file TensorConversion.h.

stage

std::string simaai::neat::ConversionTrace::stage

Which stage/Node performed the conversion.

Definition at line 67 of file TensorConversion.h.

67 std::string stage;

The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.