Skip to content

Node with multiple output keys #130

Answered by drgona
mateusfvp asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mateusfvp thanks for the inquiry.

It all depends on the definition of the callable. By default, our pre-defined MLP model supports an arbitrary number of positional arguments on inputs, internally, they are all concatenated into a single tensor. This allows handling multiple symbolic input variables via the Node class.
See the base Block class definition here:
https://github.com/pnnl/neuromancer/blob/master/src/neuromancer/modules/blocks.py#L27

As for the number of returns of the MLP class, the default is one. Therefore, the expected number of symbolic outputs is one. When you define more than one, there will be an error in the computational graph, as the rest of the variables won't b…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by drgona
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants