Revert D34868005: [torch::deploy] remove asserts from deploy
Test Plan: revert-hammer
Differential Revision:
D34868005 (https://github.com/pytorch/pytorch/commit/48b165405d7f3a3f97b90141702bdd1450919b78)
Original commit changeset: c8bb1f7a2b16
Original Phabricator Diff: D34868005 (https://github.com/pytorch/pytorch/commit/48b165405d7f3a3f97b90141702bdd1450919b78)
fbshipit-source-id: a9f2250880f44b2ebe09a44f955dd8568a203b1b
(cherry picked from commit c0537d6bf5252f307b28b3c8babd25bf9d7a5f92)