[neurun] Introduce ConstantInitializer (#3426)
author이한종/동작제어Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Wed, 7 Nov 2018 07:02:25 +0000 (16:02 +0900)
committer오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Wed, 7 Nov 2018 07:02:25 +0000 (16:02 +0900)
commit0bf791aa0dce090c7a2723b4eb95c30fefb8e9ce
tree732fa4d072f2f089f44f5efb64e1b2836bcb5326
parentcfcfd18a968b5cedb36c35562dfbaade4980864e
[neurun] Introduce ConstantInitializer (#3426)

* [neurun] Introduce ConstantInitializer

This commit introduces `ConstantIntializer` class that fills operand
objects with the constant values which were specified by
`ANeuralNetworksModel_setOperandValue`. Plus, this class replaces the
InitializerGenerator.

NOTE due to FullyConnected operation's implicit reshaping, it is
implemented with workarounds.

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
* Add license

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtimes/neurun/src/codegen/ConstantInitializer.cc [new file with mode: 0644]
runtimes/neurun/src/codegen/ConstantInitializer.h [new file with mode: 0644]
runtimes/neurun/src/codegen/PlanBuilder.cc
runtimes/neurun/src/frontend/wrapper/compilation.cc