aseyboldt opened a new issue #8133: Infer_shape_partial for rank 0 arrays URL: https://github.com/apache/incubator-mxnet/issues/8133 In the python interface of mxnet it seems to be impossible to distinguish between an array of unknown shape and an array with known shape of `()`: ```python a = mx.sym.var('a') b = mx.sym.var('b') (a + b).infer_shape_partial(b=()) ([(), ()], [()], []) ``` In this case `b` is known to be a scalar, while `a`'s shape is unknown. Shouldn't it return something like `([None, ()], [None], [])`? If `a` is set to be a scalar, it returns an invalid result: ```python a = mx.sym.var('a') b = mx.sym.var('b') (a + b).infer_shape_partial(a=(), b=(1, 2)) ([(1, 2), (1, 2)], [(1, 2)], []) ``` It identifies the shape of `a` as `(1, 2)`, even though we set it to a scalar. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
With regards, Apache Git Services