You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Based on my sympy vs. Theano experience, I would suggest that operators acting on literals return non-literals. A separate function can do a depth-first collapsing of the literals in a graph, and be called automatically by other functions that act on whole-graphs. Strongest considerations: information preservation about call graph, programmer-friendliness.
Re: __add__ in Node... a lot of operators will produce results for which addition is undefined, will that be a problem?
Arithmetic on
Literal
s should work.Literal
-Literal
operations?__add__
, etc. methods be inNode
?The text was updated successfully, but these errors were encountered: