• Brandon T. Willard's avatar
    Improve broadcastable inference for Shape and MakeVector Ops · e44edc3e
    Brandon T. Willard 提交于
    After fixing `Shape`'s broadcastable information,
    `local_subtensor_remove_broadcastable_index` started replacing all forms of
    `shape(x)[0]` with `shape(x).dimshuffle(())` when `shape(x).broadcastable
    == (True,)`, so a lot of the changes in this commit compensate for that
    difference.
    e44edc3e
test_basic_opt.py 111.5 KB