Skip to content
Snippets Groups Projects

Fix error message of CBackend for unsupported nodes

2 files
+ 33
1
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -169,7 +169,7 @@ class CBackend:
@@ -169,7 +169,7 @@ class CBackend:
method_name = "_print_" + cls.__name__
method_name = "_print_" + cls.__name__
if hasattr(self, method_name):
if hasattr(self, method_name):
return getattr(self, method_name)(node)
return getattr(self, method_name)(node)
raise NotImplementedError(self.__class__ + " does not support node of type " + str(type(node)))
raise NotImplementedError(self.__class__.__name__ + " does not support node of type " + node.__class__.__name__)
def _print_KernelFunction(self, node):
def _print_KernelFunction(self, node):
function_arguments = ["%s %s" % (str(s.symbol.dtype), s.symbol.name) for s in node.get_parameters()]
function_arguments = ["%s %s" % (str(s.symbol.dtype), s.symbol.name) for s in node.get_parameters()]
Loading