lgarithm / crystalnet

crystalnet -- a mini core AI library (being refactored, see https://github.com/lgarithm/stdnn-ops)
MIT License
16 stars 3 forks source link

Computation Graph #66

Open lgarithm opened 6 years ago

lgarithm commented 6 years ago

A computation graph is a DAG, where each node is an operation. An operation can only be performed when all of its predecessors are finished.

Operations are supposed to be pure (idempotent). Which means the output of an operation should remain the same if all of its predecessors are unchanged.

lgarithm commented 6 years ago

this should be done in conjunction with #50

zsdonghao commented 6 years ago

Hi, I think the args of every layers should also be stored in the graph~

lgarithm commented 6 years ago

In the current design, the vertices (nodes) of the graph are parameters or operators, and for each operator node, there is an inbound edge from every input argument, so args naturally included.

lgarithm commented 5 years ago

being developed as http://github.com/lgarithm/nn-graph-experimental