A graph flow engine for East Low Carbon
Project description
elcflow
介绍
ELC使用
指令
生成文档
sphinx-apidoc -o source ../elcflow/ && make html
测试
pytest --cov=elcflow
使用
注册算子
使用register_elc_function
来注册是一个算子,算子包含以下属性:
- name
- 唯一的标识符,用来找到这个算子
- outputs
- list
- 给输出取名字(在图上徐)
- inputs
- 可选
- 定义输入的名称
- 如果没有则使用函数中定义的名称
@register_elc_function(outputs=['mul_result'], name='elc_mul')
def elc_mul(a, b):
return a * b
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
elc-flow-0.0.1.tar.gz
(6.9 kB
view hashes)