[moco-tf] Refactor fixed check function to template (#6108)
author박천교/On-Device Lab(SR)/Engineer/삼성전자 <ch.bahk@samsung.com>
Thu, 1 Aug 2019 10:59:45 +0000 (19:59 +0900)
committer박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Thu, 1 Aug 2019 10:59:45 +0000 (19:59 +0900)
commit7933a0120ca9ebee8d90d3db1f88ba7f04023e03
treef23fc1de49d13c3c426b40bd9f1784eaf9d4602c
parentdc41641517c6443dccd5a53b1b9b094449bf1794
[moco-tf] Refactor fixed check function to template (#6108)

* [moco-tf] Refactor fixed check function to template

This commit refactors function for fixed reshape's shape input check.
New template function can accept TFConst and canonical ConstGen.

Signed-off-by: Cheongyo Bahk <ch.bahk@samsung.com>
* Return false on nullptr sourced
compiler/moco-tf/src/Canonicalization/ReshapeCanonicalizer.cpp