diff options
author | Frank Seide <fseide@microsoft.com> | 2019-02-02 02:41:26 +0300 |
---|---|---|
committer | Frank Seide <fseide@microsoft.com> | 2019-02-02 02:41:26 +0300 |
commit | 75604a140130b35653be65a64fff043c92e65569 (patch) | |
tree | 406cbddd9b54545c8fb77c7661a8adb2f0435d3a /src/graph | |
parent | b117996c0357b7a372756c08b4d87287dc1dd8fb (diff) |
addressed PR feedback
Diffstat (limited to 'src/graph')
-rwxr-xr-x | src/graph/expression_graph.h | 9 |
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_; } |