Skip to content
Snippets Groups Projects

[Fix] Checking nullptr on Node.cpp and ConstantFolding.cpp

Closed Wissam Boussella requested to merge wboussella/aidge_core:fix_node_constant_folding into dev
2 unresolved threads
Files
4
@@ -402,7 +402,12 @@ class ExportNodeCpp(ExportNode):
@@ -402,7 +402,12 @@ class ExportNodeCpp(ExportNode):
)
)
kernel_include_list.append(
kernel_include_list.append(
self.kernels_path + "/" + kernel_path.stem + kernel_path.suffix)
self.kernels_path + "/" + kernel_path.stem + kernel_path.suffix)
 
if kernel_path.suffix in ["h", "hpp"]:
 
kernel_include_list.append(
 
self.kernels_path + "/" + kernel_path.stem + kernel_path.suffix)
 
else : aidge_core.Log.debug(f"Did not copy {kernel_path.stem} because suffix is {kernel_path.suffix}, which is not 'h' or 'hpp'.")
 
if self.config_template != "":
if self.config_template != "":
path_to_definition = f"{self.config_path}/{self.attributes['name']}.{self.config_extension}"
path_to_definition = f"{self.config_path}/{self.attributes['name']}.{self.config_extension}"
Loading