from torchaudio.transforms import Spectrogram
spec = Spectrogram(hop_length=160)
a = to.randn(16000)
f = spec(a)
f.shape  # (201, 101,)

Why are 101 frames? The padding argument is 0 by default so there should be 98. This is what fbank does
from torchaudio.compliance.kaldi import fbank
m = fbank(a.unsqueeze(0))
m.shape  # (98, 23,)