[
https://issues.apache.org/jira/browse/SINGA-209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
wangwei closed SINGA-209.
-------------------------
Resolution: Won't Fix
many function templates are implemented by calling functions in tensor_math.h
which is not available for tensor.h.
therefore, we cannot move these templates into tensor.h.
> 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)