Wang Ji created SINGA-209:
-----------------------------
Summary: Move definition of tensor function templates from source
code file into header file
Key: SINGA-209
URL: https://issues.apache.org/jira/browse/SINGA-209
Project: Singa
Issue Type: Improvement
Reporter: Wang Ji
Usually, it is not necessary to separate the definition of templates class from
its declaration and put it inside a .cpp file. If so, we need to explicitly
instantiate templates manually when using an instant of those templates which
is inconvenient. To this end, in this ticket we move definition of tensor
function templates from source code file tensor.cc into header file tensor.h.
Refer to C++ FAQ (https://isocpp.org/wiki/faq/templates#templates-defn-vs-decl).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)