Skip to content

Commit

Permalink
fix(aten::neg): Fix a index bug in neg
Browse files Browse the repository at this point in the history
Signed-off-by: Naren Dasan <naren@narendasan.com>
Signed-off-by: Naren Dasan <narens@nvidia.com>
  • Loading branch information
narendasan committed Jun 5, 2020
1 parent 2b23874 commit 1b2cde4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/conversion/evaluators/aten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ auto aten_registrations = RegisterNodeEvaluators()
}).evaluator({
c10::Symbol::fromQualString("aten::neg"),
[](const torch::jit::Node* n, kwargs& args) -> c10::optional<torch::jit::IValue> {
auto el = args.at(n->input(1)).unwrapToInt();
auto el = args.at(n->input(0)).unwrapToInt();

return el * -1;
},
Expand Down

0 comments on commit 1b2cde4

Please sign in to comment.