Comments (7)
同问,想动态构建流程图,但是注册节点用了模板参数。
是否可以增加,运行时多态注册节点。
from cgraph.
你好,个人认为,如果想实现逆向解析的话,用 graphviz格式可能不是很好。
自行设定 json 格式,可读性会更好,也应该会更容易实现一点。供参考
from cgraph.
你好,个人认为,如果想实现逆向解析的话,用 graphviz格式可能不是很好。
自行设定 json 格式,可读性会更好,也应该会更容易实现一点。供参考
格式还好,可以采用xml或者json格式,都行。
问题是文件解析出来之后,怎么来动态生成该图对应的Pipeline或者MultiPipeline?
pipeline->registerGElement
...
这个有没例程可以参考?
from cgraph.
暂无例子, 色图当前未引入三方库,无法实现 json解析和读取的逻辑
如果顺利的话,预计等支持 python语言之后,会提供类似的demo
最近开发者内部讨论的主要内容,都是围绕如何兼容python来展开的
from cgraph.
暂无例子, 色图当前未引入三方库,无法实现 json解析和读取的逻辑
如果顺利的话,预计等支持 python语言之后,会提供类似的demo
最近开发者内部讨论的主要内容,都是围绕如何兼容python来展开的
那请你给点思路吧,xml或json解析的功能我自己可以实现。
但是怎么动态生成Pipeline或者MultiPipeline?怎么注册这些解析出来的节点?pipeline->registerGElement??
另外,这里的C++对象是MyNode1和MyNode2
CStatus status = pipeline->registerGElement(&a, {}, "nodeA");
status += pipeline->registerGElement(&b, {a}, "nodeB");
能否也支持使用字符串"MyNode1"和"MyNode2",字符串的形式也能注册节点?
CStatus status = pipeline->registerGElement<"MyNode1">(&a, {}, "nodeA");
status += pipeline->registerGElement<"MyNode2">(&b, {a}, "nodeB");
因为xml或json保存的是字符串,解析出来之后,要想动态注册它们的话,似乎只能使用字符串的方式了。。
from cgraph.
暂无明确思路,请自行思考
from cgraph.
您好,不是很明确您的需求和想法。
是否可以新开一个 issue ,详细描述情况?
from cgraph.
Related Issues (20)
- 这里格式有点问题,修改掉好了
- 这里要放开一下,下面加上注释信息
- 这个可以删除吧,应该没有用的
- 并发的情况下,考虑根据并发数,依次送入任务的流程 HOT 2
- 优化添加切面的方式 HOT 1
- 优化一下 perf的方式
- 兼容 安卓的那个判断,给删掉吧 HOT 2
- 期望有一个notify ASYNC EVENT的实例! HOT 6
- 这里应该是 CStruct 的结构体
- CStruct 的地方,优化一下
- readme 中说一下流水线调度的事情
- 提供 int 的构造函数
- [BUG] GRegion 两层嵌套,卡死问题 HOT 1
- 超时机制导致element 切割两份commit,出现循环依赖 HOT 2
- 这里注意一下 返回类型的设定
- 在linux or mac上,通过 epoll 来实现 定时器的功能
- run 方法结束之后,提供一个 check 的方法
- 异步事件,写入的时候加锁
- 关注一下这里的内容 HOT 1
- 添加类似 server的 功能
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgraph.