Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loopy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
loopy
Commits
78230b72
Commit
78230b72
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Some missing 'NumpyType' wrappers in nbody
parent
0c23b682
No related branches found
Branches containing commit
No related tags found
Tags containing commit
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loopy/library/reduction.py
+2
-2
2 additions, 2 deletions
loopy/library/reduction.py
with
2 additions
and
2 deletions
loopy/library/reduction.py
+
2
−
2
View file @
78230b72
...
@@ -59,13 +59,13 @@ class ReductionOperation(object):
...
@@ -59,13 +59,13 @@ class ReductionOperation(object):
@staticmethod
@staticmethod
def
parse_result_type
(
target
,
op_type
):
def
parse_result_type
(
target
,
op_type
):
try
:
try
:
return
np
.
dtype
(
op_type
)
return
NumpyType
(
np
.
dtype
(
op_type
)
)
except
TypeError
:
except
TypeError
:
pass
pass
if
op_type
.
startswith
(
"
vec_
"
):
if
op_type
.
startswith
(
"
vec_
"
):
try
:
try
:
return
target
.
get_or_register_dtype
(
op_type
[
4
:])
return
NumpyType
(
target
.
get_or_register_dtype
(
op_type
[
4
:])
)
except
AttributeError
:
except
AttributeError
:
pass
pass
...
...
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