[enco] Use valid bag size during DataLayoutConversion (#1933)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Tue, 23 Oct 2018 00:58:49 +0000 (09:58 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 23 Oct 2018 00:58:49 +0000 (09:58 +0900)
commit578b630bd6b9303ecfb3fd3d4cc4face9c9110dc
treea29e93a2a20e85fe5b67f69dc684c6ed6bcada4a
parent932a3406c07c0f1336b05cbd25f999297458e2c6
[enco] Use valid bag size during DataLayoutConversion (#1933)

* [enco] Use valid bag size during DataLayoutConversion

The current implementation of "clone_feature" in data layout conversion
pass creates a new bag whose size is same as the size of a corresponding
bag.

However, this implementation may result in invalid bag mapping, especially
when the corresponding bag uses broadcasting layout (i.e. there are multiple
feature indices that map to one element in a bag).

This commit revises this buggy implementation of "clone_feature".

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
* Do NOT declare unused oldbag variable
contrib/enco/core/src/Transforms/DataLayoutConversion.cpp