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
36790774
Commit
36790774
authored
7 years ago
by
Kaushik Kulkarni
Browse files
Options
Downloads
Patches
Plain Diff
Adding a missing argument to IdentityMapper
parent
7095ac70
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!426
Discussion: kernel_callables_v3-edit2
,
!246
WIP: Kernel Callables
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loopy/kernel/function_interface.py
+2
-2
2 additions, 2 deletions
loopy/kernel/function_interface.py
with
2 additions
and
2 deletions
loopy/kernel/function_interface.py
+
2
−
2
View file @
36790774
...
@@ -688,7 +688,7 @@ class ScopedFunctionNameChanger(RuleAwareIdentityMapper):
...
@@ -688,7 +688,7 @@ class ScopedFunctionNameChanger(RuleAwareIdentityMapper):
tuple
(
self
.
rec
(
child
)
tuple
(
self
.
rec
(
child
)
for
child
in
expr
.
parameters
))
for
child
in
expr
.
parameters
))
else
:
else
:
return
IdentityMapper
.
map_call
(
self
,
expr
)
return
IdentityMapper
.
map_call
(
self
,
expr
,
expn_state
)
else
:
else
:
return
self
.
map_substitution
(
name
,
tag
,
expr
.
parameters
,
expn_state
)
return
self
.
map_substitution
(
name
,
tag
,
expr
.
parameters
,
expn_state
)
...
@@ -713,7 +713,7 @@ class ScopedFunctionNameChanger(RuleAwareIdentityMapper):
...
@@ -713,7 +713,7 @@ class ScopedFunctionNameChanger(RuleAwareIdentityMapper):
for
key
,
val
in
six
.
iteritems
(
expr
.
kw_parameters
))
for
key
,
val
in
six
.
iteritems
(
expr
.
kw_parameters
))
)
)
else
:
else
:
return
IdentityMapper
.
map_call_with_kwargs
(
self
,
expr
)
return
IdentityMapper
.
map_call_with_kwargs
(
self
,
expr
,
expn_state
)
def
map_reduction
(
self
,
expr
,
expn_state
):
def
map_reduction
(
self
,
expr
,
expn_state
):
from
loopy.symbolic
import
Reduction
from
loopy.symbolic
import
Reduction
...
...
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