singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wangwei (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SINGA-209) Move definition of tensor function templates from source code file into header file
Date Tue, 27 Sep 2016 08:07:20 GMT

    [ https://issues.apache.org/jira/browse/SINGA-209?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15525432#comment-15525432
] 

wangwei commented on SINGA-209:
-------------------------------

great.
For Mac, you are encouraged to use homebrew for installing the dependent libs.
After installing dependent libs, you'd better check the links of libraries by following instructions
of `brew doctor`.

> 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