Revert D25074763: [WIP] Update foreach APIs to use scalar lists
Test Plan: revert-hammer
Differential Revision:
D25074763 (https://github.com/pytorch/pytorch/commit/cce84b5ca5fb02bda814138bd361eea6cafc16d5)
Original commit changeset: 155e3d2073a2
fbshipit-source-id: ef0d153e2740b50bd4a95f7a57c370bb5da46355
Author
Natalia Gimelshein