[TensorMerge] Add Proper GstMemory Generation according to direction
Add gst_tensor_merge_generate_mem function to generate output
GstMemory to push.
Now support linear mode and channel, width, height option.
Assume tensor a is aC:aW:aH:aB and b is bC:bW:bH:bB.
if the mode is linear and channel option,
the output tensor is generated by
aC+bC:aW:aH:aB ( should be aH==bH, aW==bW and a.type==b.type ).
That means,
[[aB][aH][aW][aC,bC]]
if linear and width option,
aC:aW+bW:aH,aB ( should be aC==bC, aH==bH and a.type==b.type ).
[[aB][aH][aW,bW][aC]]
if linear and height option
aC:aW:aH+bH,aB (should be aC==bC, aW==bW and a.type==b.type ).
[[aB][aH,bH][aW][aC]]
Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>