[nnc] Added a new API to compress all buffers in a given statement (#61087)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/61087
Test Plan: Imported from OSS
Reviewed By: ZolotukhinM
Differential Revision: D29506677
Pulled By: navahgar
fbshipit-source-id: 63583fd5a0e42c0096ddf08d5b96bc680ea8a44e