Skip to content
Snippets Groups Projects
Commit 4f8f27b8 authored by Olivier BICHLER's avatar Olivier BICHLER
Browse files

Imrpoved display

parent 5460accb
No related branches found
No related tags found
3 merge requests!414Update version 0.5.1 -> 0.6.0,!408[Add] Dropout Operator,!332Add selection mechanism in graph
...@@ -76,16 +76,12 @@ struct Registrar { ...@@ -76,16 +76,12 @@ struct Registrar {
} }
static auto create(const registrar_key& key) { static auto create(const registrar_key& key) {
if (!exists(key)) { AIDGE_ASSERT(exists(key),
Log::error("missing or invalid registrar key: {} for registrable object {}\nDid you include/import the corresponding module?\nIf so, it is possible that the object is not yet supported.", key, typeid(C).name()); "missing or invalid registrar key: {} for registrable object {}\n"
"Did you include/import the corresponding module?\n"
Log::info("Available registrar keys are:"); "If so, it is possible that the object is not yet supported.\n\n"
for(const auto& keyValue : C::registry()) { "Available registrar keys are:\n {}",
Log::info("- {}", keyValue.first); key, typeid(C).name(), fmt::join(getKeys(), "\n "));
}
AIDGE_THROW_OR_ABORT(std::runtime_error, "missing or invalid registrar key");
}
return C::registry().at(key); return C::registry().at(key);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment