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:
authorRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2017-10-28 19:38:49 +0300
committerRoman Grundkiewicz <rgrundki@exseed.ed.ac.uk>2017-10-28 19:43:57 +0300
commit3487e830573d8c26deadc3230763f3b332e86938 (patch)
tree31a5a5ae80eed0a094054b6b47539ec88197cead /src/graph/node_operators_unary.h
parentfc2180251eb1b954adf85455804a5905615d6cf7 (diff)
Replace UTIL_THROWNs with ABORTs
Diffstat (limited to 'src/graph/node_operators_unary.h')
-rw-r--r--src/graph/node_operators_unary.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graph/node_operators_unary.h b/src/graph/node_operators_unary.h
index 3eb1c7ae..f42b7eed 100644
--- a/src/graph/node_operators_unary.h
+++ b/src/graph/node_operators_unary.h
@@ -146,8 +146,8 @@ struct TanhNodeOp : public NaryNodeOp {
for(int n = 1; n < nodes.size(); ++n) {
Shape shapen = nodes[n]->shape();
for(int i = 0; i < shapen.size(); ++i) {
- UTIL_THROW_IF2(shape[i] != shapen[i] && shape[i] != 1 && shapen[i] != 1,
- "Shapes cannot be broadcasted");
+ ABORT_IF(shape[i] != shapen[i] && shape[i] != 1 && shapen[i] != 1,
+ "Shapes cannot be broadcasted");
shape.set(i, std::max(shape[i], shapen[i]));
}
}