• Pascal Lamblin's avatar
    Fix bug in infer_shape of Flatten · f1b4d788
    Pascal Lamblin 提交于
    Infershape would incorrectly assign a shape of 1 on the last dimension,
    if all dimension were preserved.
    In particular, calling .flatten() on some vector would infer a shape of
    (1,), which is incorrect.
    f1b4d788
basic.py 239.7 KB