[ao][sparsity] removing old sparsity API and updating tests
Summary: per our design discussion about sparsity API, we're
discontinuing the old API in favor of the new tensor_fqn based one.
The pruning class has not been updated mostly because this change
doesn't cause any further knock on effects.
Test Plan: python test/test_ao_sparsity.py
Reviewers:
Subscribers:
Tasks:
Tags:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79597
Approved by: https://github.com/z-a-f