Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Python: When pass None to mx.sym.var's shape and infer, python stop working #7981

@traveller59

Description

@traveller59

Environment info

Operating System: Windows 10 64bit
Package used (Python/R/Scala/Julia):Python
MXNet version: 0.11

Error Message:

mxnet should raise a exception instead of stop working when user pass a None(tensorflow style) shape to mx.sym.var
Code:

x = mx.sym.var('x', shape=(None, 100))
y = mx.sym.var('y', shape=(None, 100))
z = x + y
t = x** 2 + z / y
t.infer_shape()

Error:

[19:40:57] D:\Program Files (x86)\Jenkins\workspace\mxnet\mxnet\src\executor\infer_graph_attr_pass.cc:139: Check failed: is >> rshape[out_ent_id] Invalid attribute

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions