Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils
Commits
30f0592f
Commit
30f0592f
authored
2 years ago
by
Markus Holzer
Browse files
Options
Downloads
Patches
Plain Diff
Clean up
parent
0a33aaaa
No related branches found
No related tags found
1 merge request
!308
Remove depricated feature
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/config.py
+3
-1
3 additions, 1 deletion
pystencils/config.py
with
3 additions
and
1 deletion
pystencils/config.py
+
3
−
1
View file @
30f0592f
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
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment