[NS] Mark output logger impure to avoid being removed in acc tracer (#73745)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/73745
Mark output logger as impure, which will help prevent it and the shadow ops from being removed in acc tracer.
Test Plan: Tested in N1611591
Reviewed By: jerryzh168
Differential Revision: D34616990
fbshipit-source-id: ccc93e30f9cbf3eb69f49fc2d0f02fd4d083c507
(cherry picked from commit e40fcbd1bc543eb64fa692776c34f26e2a0a05ff)