Skip to content
Snippets Groups Projects
Commit 30f0592f authored by Markus Holzer's avatar Markus Holzer
Browse files

Clean up

parent 0a33aaaa
No related branches found
No related tags found
1 merge request!308Remove depricated feature
import warnings
from copy import copy
from collections import defaultdict
from dataclasses import dataclass, field
......@@ -147,6 +146,9 @@ class CreateKernelConfig:
self.backend = Backend.CUDA
else:
raise NotImplementedError(f'Target {self.target} has no default backend')
if not isinstance(self.backend, Backend):
raise ValueError("backend must be provided by the 'Backend' enum")
# Normalise data types
if not isinstance(self.data_type, dict):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment