oneflow-xrt's People
oneflow-xrt's Issues
Dismatch device between producer and consumer
在测试 adam 的时候遇到1个问题:多个输入中,weight 和 weight_grad 是来自 non-cpu device,而 bias_correction_factor 来自 cpu device。导致在 compile 时,无法确定 input 到底是 device 上的还是 cpu 上的。
在oneflow的compile过程中,adam gen pass 中插入 bias_correction_factor op 时,一般插入的是 cpu 的 op。然后在之后的 build task graph 阶段,会再在 bias_correction_factor 和 adam optimizer 之间再插入一个 copy h2d 来完成转换。
但 xrt 的编译过程是发生在 build task graph 阶段之前,就无法检测到该 copy h2d 节点。其 adam xrt node 的输入就会来自不同的 device,编译成子图时,子图的 inputs 也就来自不同的 device 了。
[Update Request] XRTModule need be updated
oneflow 中 nn.Graph 的内部接口有一些 breaking update(譬如 finish_complie_and_init_runtime 被换成其他实现)。
XRTModule 需要随着一起更新。
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.