Hwo to turn shape_array output to list

take a example
input = x.symbol.Variable(“a”, init=mx.init.Zero(), shape=(1,2,3 ))
input_shape = input.shape_array()
shape_1 = input_shape[0]
input_view = mx.symbol.reshape(input, shape=(shape_1 , -1))

about will get exception, because input_shape is a symbol too

Can you explain what is your end goal?
For example here you could just use .flatten() and you would get the same result:

[[1. 1. 1. 1. 1. 1.]]
<NDArray 1x6 @cpu(0)>
[[1. 1. 1. 1. 1. 1.]]
<NDArray 1x6 @cpu(0)>

it is just a example
the goal is to optimize mxnet for some model