Skip to content
Snippets Groups Projects
Commit b1067ec7 authored by Maxence Naud's avatar Maxence Naud Committed by Maxence Naud
Browse files

fix a log and add some details to another log

parent 5d0baf0b
No related branches found
No related tags found
No related merge requests found
...@@ -95,7 +95,7 @@ Aidge::ImplSpec Aidge::OperatorImpl::getBestMatch(const ImplSpec& requiredSpecs) ...@@ -95,7 +95,7 @@ Aidge::ImplSpec Aidge::OperatorImpl::getBestMatch(const ImplSpec& requiredSpecs)
Log::debug("getBestMatch() for requirements: {}", requiredSpecs); Log::debug("getBestMatch() for requirements: {}", requiredSpecs);
const auto availableSpecsSet = getAvailableImplSpecs(); const auto availableSpecsSet = getAvailableImplSpecs();
AIDGE_ASSERT(availableSpecsSet.size() > 0 , AIDGE_ASSERT(availableSpecsSet.size() > 0 ,
"OperatorImpl::getBestMatch(): No available specs found by" "OperatorImpl::getBestMatch(): No available specs found by"
"getAvailableSpecs(). " "getAvailableSpecs(). "
"Cannot find best implementation for required specs, aborting."); "Cannot find best implementation for required specs, aborting.");
...@@ -139,7 +139,7 @@ Aidge::ImplSpec Aidge::OperatorImpl::getBestMatch(const ImplSpec& requiredSpecs) ...@@ -139,7 +139,7 @@ Aidge::ImplSpec Aidge::OperatorImpl::getBestMatch(const ImplSpec& requiredSpecs)
if (mandatory) { if (mandatory) {
// Required attribute: // Required attribute:
if (!spec.attrs.hasAttr(name)) { if (!spec.attrs.hasAttr(name)) {
Log::debug("Could not find mandatory attribute {} value {}.", name); Log::debug("Could not find mandatory attribute '{}'.", name);
// Missing attribute // Missing attribute
match = false; match = false;
break; break;
......
...@@ -88,7 +88,7 @@ std::shared_ptr<Aidge::Data> Aidge::OperatorTensor::getRawOutput(const Aidge::IO ...@@ -88,7 +88,7 @@ std::shared_ptr<Aidge::Data> Aidge::OperatorTensor::getRawOutput(const Aidge::IO
} }
const std::shared_ptr<Aidge::Tensor>& Aidge::OperatorTensor::getOutput(const Aidge::IOIndex_t outputIdx) const { const std::shared_ptr<Aidge::Tensor>& Aidge::OperatorTensor::getOutput(const Aidge::IOIndex_t outputIdx) const {
AIDGE_ASSERT(outputIdx < nbOutputs(), "{} Operator has {} outputs", type(), nbOutputs()); AIDGE_ASSERT(outputIdx < nbOutputs(), "{} Operator has {} outputs, asked for output#{}", type(), nbOutputs(), outputIdx);
return mOutputs[outputIdx]; return mOutputs[outputIdx];
} }
......
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