singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wang Ji (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SINGA-209) Move definition of tensor function templates from source code file into header file
Date Mon, 27 Jun 2016 12:28:52 GMT
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)

Mime
View raw message