I have three Halide functions which have the following output dimensions:
40 x 40 x 64
40 x 40 x 128
40 x 40 x 64
I want to combine them into a single function so that I get a function handle for later use. So for here , the resulting function should have a dimension of
40 x 40 x 256
I am using Halide::select
but it results in 4 dimensions
concat(x,y,z,c)=Halide::select(c == 0, func_1(x, y, z), c == 1, func_2(x, y, z), func_3(x, y, z));
Is there any way to produce a merged 3D function?