Add a default param to asTensorShape() to apply conditionally (#2464)
author장지섭/동작제어Lab(SR)/Engineer/삼성전자 <jiseob.jang@samsung.com>
Fri, 31 Aug 2018 08:22:05 +0000 (17:22 +0900)
committer이춘석/동작제어Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Fri, 31 Aug 2018 08:22:05 +0000 (17:22 +0900)
commit65606cff10c5f617b8ee92ad1898b0262176262a
tree289442aeefee01e8b938f6de52784f8a92614974
parent94df0692f1de9d98854164078cf6ee4a61b000d7
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>
runtimes/pure_arm_compute/src/internal/arm_compute/Cast.h