Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
7e648417
Commit
7e648417
authored
May 24, 2019
by
雾雨魔理沙
Committed by
Tianqi Chen
May 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Relay] remove unneeded VisitExpr (#3239)
parent
d3958e11
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/relay/pass/gradient.cc
+1
-1
No files found.
src/relay/pass/gradient.cc
View file @
7e648417
...
@@ -279,7 +279,7 @@ struct ReverseAD : ExprMutator {
...
@@ -279,7 +279,7 @@ struct ReverseAD : ExprMutator {
}
}
std
::
vector
<
Expr
>
orig_args
;
std
::
vector
<
Expr
>
orig_args
;
for
(
const
auto
&
arg
:
args
)
{
for
(
const
auto
&
arg
:
args
)
{
orig_args
.
push_back
(
GetField
(
VisitExpr
(
arg
)
,
0
));
orig_args
.
push_back
(
GetField
(
arg
,
0
));
}
}
Expr
orig
=
CallNode
::
make
(
op
->
op
,
orig_args
,
op
->
attrs
,
op
->
type_args
);
Expr
orig
=
CallNode
::
make
(
op
->
op
,
orig_args
,
op
->
attrs
,
op
->
type_args
);
Var
orig_var
=
ll
->
Push
(
orig
);
Var
orig_var
=
ll
->
Push
(
orig
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment