Is the list of functions used in Pytorchviz same as the list of 'grad_fn’s in Pytorch?

Yes it is just a visualization of the grad_fn in PyTorch   You can check the code, it just traverses the grad_fn and next_functions.