pytorch
ca0540a7 - Remove variable shadowing from tensorpipe lambda (#39126)

Commit
4 years ago
Remove variable shadowing from tensorpipe lambda (#39126) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/39126 futureResponseMessage is shadowed in the pipeWrite lambda which creates some confusion, since it is used in the initial error handling but then a future of the same name is created when marking the future as completed. This change removes this by getting rid of the futureResponseMessage capture, instead capturing the message id. This change also makes it so that we don't need to copy it into the lambda. ghstack-source-id: 106211353 Test Plan: CI Differential Revision: D22127398 fbshipit-source-id: c98a53b5630ce487461e4ca9cd72fbd34788298d
Author
Parents
Loading