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

Need to support the requirement of not creating and destroying variables in every run #9243

Closed
Xreki opened this issue Mar 20, 2018 · 0 comments
Labels
预测 原名Inference,包含Capi预测问题等

Comments

@Xreki
Copy link
Contributor

Xreki commented Mar 20, 2018

In the current implementation of Executor.Run, all the non-persistable variables will be created and destroyed in every Run. However, users may want to hold the non-persistable variables for two reasons:

  • case 1, there is no memory problem and users want to save for runtime of frequent creating and destroying of variables.
  • case 2, sometimes users may want to get the tensor of all operators for debug purpose.

As a result, we need to add an argument in Executor.Run to support these kinds of user requirements.

@Xreki Xreki added the 预测 原名Inference,包含Capi预测问题等 label Mar 20, 2018
@Xreki Xreki changed the title Need to support whether to create and destroy variables every time Need to support the requirement of not creating and destroying variables in every run Mar 20, 2018
@Xreki Xreki added this to Basic Usage (DONE) in Inference Framework Apr 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
预测 原名Inference,包含Capi预测问题等
Projects
No open projects
Inference Framework
Basic Usage (DONE)
Development

No branches or pull requests

1 participant