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-02 02:41:26 +0300
committerFrank Seide <fseide@microsoft.com>2019-02-02 02:41:26 +0300
commit75604a140130b35653be65a64fff043c92e65569 (patch)
tree406cbddd9b54545c8fb77c7661a8adb2f0435d3a /src/graph
parentb117996c0357b7a372756c08b4d87287dc1dd8fb (diff)
addressed PR feedback
Diffstat (limited to 'src/graph')
-rwxr-xr-xsrc/graph/expression_graph.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/graph/expression_graph.h b/src/graph/expression_graph.h
index 22908d96..dfd00a9a 100755
--- a/src/graph/expression_graph.h
+++ b/src/graph/expression_graph.h
@@ -316,13 +316,6 @@ public:
dot.close();
}
- Expr tryFindParam(const std::string& pname) const {
- std::string name = pname;
- if(!namespace_.empty())
- name = namespace_ + "::" + name;
- return params_->get(name);
- }
-
Expr param(const std::string& pname,
const Shape& shape,
const NodeInitializer& init,
@@ -407,7 +400,7 @@ public:
auto e = params_->get(name);
if(e)
return e;
- return Expr();
+ return Expr(); // @TODO: how is this different from just returning 'e'?
}
Ptr<Parameters>& params() { return params_; }