Add a default param to asTensorShape() to apply conditionally (#2464)
This commit add a default param to asTensorShape() to apply conditionally dimension coorection.
In some cases, in incorrect dimensions is required.
For example, intput_size is 1 in LSTM. The input-to-input weights([num_units, input_size]) of LSTM is used as the weight of the FullyConnected.
The FullyConnected's weight must be greater or equal than 2-dimensions.
However, if the dimension correction is applied to input_to_input_weights with input_size equal to 1, it will be changed to 1-D.
So input_to_input_weights is not used by the weight of FullyConnected.
Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>