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
path: root/src/graph
diff options
context:
space:
mode:
authorFrank Seide <fseide@microsoft.com>2019-02-07 10:50:33 +0300
committerFrank Seide <fseide@microsoft.com>2019-02-07 10:50:33 +0300
commit9b54e7f1caa86b16da84638a20566e8d5451c170 (patch)
tree01bafc932776eebff7600ce685d3e47ffb252ba7 /src/graph
parentf88eb0d3687575cfe55f908ddad4617c9dc68ee2 (diff)
further simplification/commenting of beam search
Diffstat (limited to 'src/graph')
-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 8a79cbe0..5c37beef 100755
--- a/src/graph/expression_operators.cpp
+++ b/src/graph/expression_operators.cpp
@@ -536,7 +536,7 @@ Expr swapAxes(Expr x, int axis1, int axis2)
return x;
// TODO: This is code dup from transpose(x). Implement transpose(x) as swapAxes(x, 0, 1)
std::vector<int> axes(x->shape().size());
- for (int i = 0; i < axes.size(); ++i)
+ for (int i = 0; i < axes.size(); ++i) // @TODO: use std::iota()
axes[i] = i;
std::swap(axes[axis1], axes[axis2]);
return transpose(x, axes);