def reshape_with_symbol(v, shape):
    """
    Perform basic reshape if v is symbolic (not array of symbols).
    """
    if is_symbolic(v):
        return np.array(v).reshape(shape)
    shape = [int(s) for s in shape]
    return v.reshape(shape)

    Perform basic reshape if v is symbolic (not array of symbols).
    
coremltools/converters/mil/mil/ops/defs/iOS15/tensor_transformation.py