if you're referring to a shape of a NumPy array, rather than a tuple
(your provided example does not represent a tuple):
given some array x
with shape (680,)
, you can use x[...,np.newaxis]
to expand it's dimension
toy example:
x = np.empty((680,))
print(x.shape)
x = x[..., np.newaxis]
print(x.shape)
out:
(680,)
(680, 1)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…