How to calculate the probability value or cdf of a normal distribution?

I can sample from a normal distribution with mean 0 and sd 1 like torch.randn(size). Now how to calculate the probability value of the samples in pytorch like we do in scipy as following?
----> scipy.stats.norm(0, 1).cdf(0)

Use torch.erf, but you need some transform.