An open API service indexing awesome lists of open source software.

https://github.com/yvn11/infinity

DAG-based computation graph for streaming data
https://github.com/yvn11/infinity

c-plus-plus calculation computation-graph infinity streaming-data

Last synced: about 1 year ago
JSON representation

DAG-based computation graph for streaming data

Awesome Lists containing this project

README

          

Infinity
-----------------------------------------------------

Incredible
-----------------------
- Introduction
A unit-based computation graph library. Each unit has its own
inputs, outputs and corresponding operations. By running a unit,
it does the following:
```
+------+--------------------+
| unit | |
+------+ |
| => [OP] => |
+---------------------------+
```

A unit can shared data via inputs or outputs

```
+------+--------------------+
| unit1| |
+------+ |
| => [OP] => |
+----------------------\ /-+
||
+------+----------------\/--+
| unit2| |
+------+ |
| <= [OP] <= |
+---------------------------+

```
- Example

A formula

y = (a + b) * (-c)

Represent the computation with units, it looks like this

```

+------+
|input0|--+
+------+ | +--------+
+->|unit_add|----+
+------+ | +--------+ |
|input1|--+ | +--------+ +------+
+------+ +->|unit_mul|->|output|
| +--------+ +------+
+------+ +-----------+ |
|input2|--->|unit_negate|--+
+------+ +-----------+

```

The graph accept stream data, each input changed, the output would be updated.