Take const refs in TensorIterator::mark_outputs
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/22465
Test Plan: Imported from OSS
Differential Revision: D16105795
Pulled By: jamesr66a
fbshipit-source-id: 22945fc3f02f8450ae6b92492a0f7baad80c5cb5