diff --git a/src/target/target.cc b/src/target/target.cc index a2a10da6d79a4..f2f3fbcb0cc56 100644 --- a/src/target/target.cc +++ b/src/target/target.cc @@ -768,9 +768,9 @@ ObjectPtr TargetInternal::FromConfig(std::unordered_map(ret)); - } else if (type_info.type_index == Bool::ContainerType::_GetOrAllocRuntimeTypeIndex()) { attrs[key] = Integer(static_cast(ret)); + } else if (type_info.type_index == Bool::ContainerType::_GetOrAllocRuntimeTypeIndex()) { + attrs[key] = Bool(static_cast(ret)); } else { LOG(FATAL) << "Expected " << type_info.type_key << " parameter for attribute '" << key << "', but received integer from device api";