You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@singa.apache.org by "wangwei (JIRA)" <ji...@apache.org> on 2017/01/11 06:46:58 UTC

[jira] [Resolved] (SINGA-264) Extend the FeedForwardNet to accept multiple inputs

     [ https://issues.apache.org/jira/browse/SINGA-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

wangwei resolved SINGA-264.
---------------------------
    Resolution: Fixed
      Assignee: wangwei

> Extend the FeedForwardNet to accept multiple inputs
> ---------------------------------------------------
>
>                 Key: SINGA-264
>                 URL: https://issues.apache.org/jira/browse/SINGA-264
>             Project: Singa
>          Issue Type: Improvement
>            Reporter: wangwei
>            Assignee: wangwei
>
> The current implementation of the feed-forward net assumes that the input data comes from a single source, which does not work for nets with multiple input sources.
> To enable multiple data sources and to be compatible with existing code, we can update the code by adding a check for the x field of `def train(x, y)`
> {code}
> if type(x) is dict:  # multi sources
>     # feed the value x[k] to the input layer with name k
> else:  # single source
>    feed x to the first layer, i.e. the input layer
> {code}
> Similarly we can also process multiple output (label) tensors.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)