(tensor)
return tensor.sum(dim=0).sum(dim=-1)
sum over the first and last dimention
sum over the first and last dimention
sum over the first and last dimention
def _sum_ft(tensor):
    """sum over the first and last dimention"""
    return tensor.sum(dim=0).sum(dim=-1)
def _sum_ft ( tensor ) : return tensor . sum ( dim = 0 ) . sum ( dim = - 1 )