Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate Code Generation and Constant Collection during Compile #2254

Closed
gcatron opened this issue Jan 9, 2019 · 0 comments
Closed

Separate Code Generation and Constant Collection during Compile #2254

gcatron opened this issue Jan 9, 2019 · 0 comments

Comments

@gcatron
Copy link
Contributor

gcatron commented Jan 9, 2019

Background:
With the new runtime design (#2045) we split the compilation step into two parts parts, code generation and collecting constants. Code generation is when the graph is converted to executable code that will run on the platform. Collecting Constants is the process of gathering weights and constants from the input module and copying them into a single chunk of memory for execution and copying to the device.

Impact:
This means we need to introduce a new method to the Backend interface. Namely, compileWithoutConstants. This does everything compile does except collect constants to one region of memory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant