I am making a function to return the shape of a tensor, it is:
def get_shape(lst): shape = [] l = lst s = True while s: shape.append(len(l)) if isinstance