(tensor)
return tensor.unsqueeze(0).unsqueeze(-1)
add new dimensions at the front and the tail
add new dimensions at the front and the tail
add new dimensions at the front and the tail
def _unsqueeze_ft(tensor):
    """add new dimensions at the front and the tail"""
    return tensor.unsqueeze(0).unsqueeze(-1)
def _unsqueeze_ft ( tensor ) : return tensor . unsqueeze ( 0 ) . unsqueeze ( - 1 )