neuromorphs / NIR

Neuromorphic Intermediate Representation reference implementation
https://neuroir.org/docs
BSD 3-Clause "New" or "Revised" License
76 stars 10 forks source link

meta-data in NIR nodes #70

Closed stevenabreu7 closed 7 months ago

stevenabreu7 commented 1 year ago

In our discussions, the idea came up to include metadata into NIR nodes that would help developers implement NIR nodes on their respective platform.

As an example, @bvogginger pointed out in #63 that we should not include the reset mechanism into the NIR node definition itself, since the reset mechanism (subtractive, reset to zero, etc) is specific to digital implementations and has no place in the ODE formulation of the node. However, to make sure that NIR graphs commute across platforms, developers need to know what reset mechanism was originally implemented for a given NIR graph. Hence, the idea is to include a file of "metadata" into [every | some] NIR nodes that will give such relevant information.

Suggestions for metadata:

sheiksadique commented 1 year ago

Thought: A big risk of adding this meta data is libraries getting dependent on this data. This can quickly go downhill from there.

Jegp commented 7 months ago

Closed with #79

Jegp commented 7 months ago

Thought: A big risk of adding this meta data is libraries getting dependent on this data. This can quickly go downhill from there.

I added a warning on this in the docs. But yes, this is a big danger we should be concerned and aware about going forward