Skip to content

Eliminate runBatch #1587

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

Closed
nadavrot opened this issue Sep 6, 2018 · 2 comments
Closed

Eliminate runBatch #1587

nadavrot opened this issue Sep 6, 2018 · 2 comments

Comments

@nadavrot
Copy link
Contributor

nadavrot commented Sep 6, 2018

The execution engine provides a runBatch method that contains an internal static variable (global variable) that keeps track of the batch size. The batch size is calculated based on the first dimension of the input tensors.

We should remove this method and replace it with some helper utility. The execution engine should not provide this strange interface. The runBatch replacement should rely on the run() interface that the execution engine provides.

nadavrot added a commit to nadavrot/glow that referenced this issue Sep 6, 2018
Add support for the runBatch interface. This commit implements the parts
of runBatch that copy parts of the tensors into the placeholder. The
implementation is zero-copy because we use tensor views.  I hope that
this is a temporary solution and that we'll get rid of runBatch soon
(see pytorch#1587).
nadavrot added a commit that referenced this issue Sep 6, 2018
Add support for the runBatch interface. This commit implements the parts
of runBatch that copy parts of the tensors into the placeholder. The
implementation is zero-copy because we use tensor views.  I hope that
this is a temporary solution and that we'll get rid of runBatch soon
(see #1587).
@jfix71
Copy link
Contributor

jfix71 commented Sep 11, 2018

@nadavrot This can be closed thanks to #1594, correct?

@nadavrot
Copy link
Contributor Author

@jfix71 Yes, thank you!

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

2 participants