In TF, the tf.expand_dims() is equivalent to the torch.unsqueeze().
tf.expand_dims()
torch.unsqueeze()