Skip to content

Conversation

yinghai
Copy link
Contributor

@yinghai yinghai commented Dec 25, 2019

Summary: Zero length input is something we hit fairly frequently in practice. Previous handling of global TensorPool involves two locks per input (acquire and reclaim). Here we use a specialized anchor tensor to host zero length input. Note that it is only padded to max sequence length. If necessary, an easy extension can be added to pad to max InputPlaceholder.getType().size().

Differential Revision: D19192467

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D19192467

@kostmo
Copy link
Member

kostmo commented Dec 25, 2019

💊 CircleCI build failures summary and remediations

As of commit a6cfae1:

Commit a6cfae1 was recently pushed. Waiting for builds...


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

This comment has been revised 2 times.

Summary:
Pull Request resolved: pytorch/glow#3943

Zero length input is something we hit fairly frequently in practice. Previous handling of global TensorPool involves two locks per input (acquire and reclaim). Here we use a specialized anchor tensor to host zero length input. Note that it is only padded to max sequence length. If necessary, an easy extension can be added to pad to max `InputPlaceholder.getType().size()`.

Reviewed By: jfix71

Differential Revision: D19192467

fbshipit-source-id: bfa7da6bf72f9013001dc7157527fc56c070f913
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D19192467

facebook-github-bot pushed a commit that referenced this pull request Dec 27, 2019
Summary:
Pull Request resolved: #31602

Pull Request resolved: pytorch/glow#3943

Zero length input is something we hit fairly frequently in practice. Previous handling of global TensorPool involves two locks per input (acquire and reclaim). Here we use a specialized anchor tensor to host zero length input. Note that it is only padded to max sequence length. If necessary, an easy extension can be added to pad to max `InputPlaceholder.getType().size()`.

Reviewed By: jfix71

Differential Revision: D19192467

fbshipit-source-id: cafdc1eb7bf9b9d6ead04a0243b0be838f6b71cd
wuhuikx pushed a commit to wuhuikx/pytorch that referenced this pull request Jan 30, 2020
Summary:
Pull Request resolved: pytorch#31602

Pull Request resolved: pytorch/glow#3943

Zero length input is something we hit fairly frequently in practice. Previous handling of global TensorPool involves two locks per input (acquire and reclaim). Here we use a specialized anchor tensor to host zero length input. Note that it is only padded to max sequence length. If necessary, an easy extension can be added to pad to max `InputPlaceholder.getType().size()`.

Reviewed By: jfix71

Differential Revision: D19192467

fbshipit-source-id: cafdc1eb7bf9b9d6ead04a0243b0be838f6b71cd
vdantu pushed a commit to vdantu/glow that referenced this pull request Jul 12, 2020
Summary:
Pull Request resolved: pytorch/pytorch#31602

Pull Request resolved: pytorch#3943

Zero length input is something we hit fairly frequently in practice. Previous handling of global TensorPool involves two locks per input (acquire and reclaim). Here we use a specialized anchor tensor to host zero length input. Note that it is only padded to max sequence length. If necessary, an easy extension can be added to pad to max `InputPlaceholder.getType().size()`.

Reviewed By: jfix71

Differential Revision: D19192467

fbshipit-source-id: cafdc1eb7bf9b9d6ead04a0243b0be838f6b71cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants