Skip to main content

ClikaRT::nn::HookOutcome

struct

Header: ClikaRT/nn/module.h

What one call of a custom operator's output_shapes or compute reported back to the runtime: Status::Ok with empty text on success, otherwise the status and text of the exception the hook raised. Plain data on purpose: an exception raised in application code is caught by the application's own C++ runtime (the entry points of detail::ModuleHookTable) and only this record crosses into the library. Not something a module author fills in by hand: the entry points in detail::ModuleHookTable produce it.

Data members

status

Status status = Status::Ok

Declared in ClikaRT/nn/module.h, line 60

typed

bool typed = false

true when the exception was a ClikaRT::Error

Declared in ClikaRT/nn/module.h, line 61

message

std::string message

the exception's text; empty on success

Declared in ClikaRT/nn/module.h, line 62

code_name

std::string code_name

a ClikaRT::Error's code name; empty otherwise

Declared in ClikaRT/nn/module.h, line 63