Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/marian.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Seide <fseide@microsoft.com>2019-01-23 02:23:11 +0300
committerFrank Seide <fseide@microsoft.com>2019-01-23 02:23:11 +0300
commit7ae9709043cdcc4f9bf38e9519f06e9eccaf58eb (patch)
treed09c9ebaa178c6e4178f60c2317fc239162ba338
parent0a62d1e2d051105cb25a83cc3ab348e4b19c50df (diff)
fixed a typo
-rwxr-xr-xsrc/graph/expression_operators.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/graph/expression_operators.cpp b/src/graph/expression_operators.cpp
index db820062..826bd9f0 100755
--- a/src/graph/expression_operators.cpp
+++ b/src/graph/expression_operators.cpp
@@ -256,7 +256,7 @@ Expr index_select(Expr a, int axis, Expr indices) {
// We have specialized kernels for non-batched indexing of first or last axis of a 2D tensor.
auto rank = a->shape().size();
if (rank == 2) {
- if (axis == 0 || axis == 2)
+ if (axis == 0 || axis == -2)
return Expression<RowsNodeOp>(a, indices);
else if (axis == -1 || axis == 1)
return Expression<ColsNodeOp>(a, indices);