None作为tensor的索引作用是增加维度
ac.shape
torch.Size([16])
p = ac[None,None,None,None,:] p.shape
torch.Size([1, 1, 1, 1, 16]))