Hey guys!!
I’m working on a keras model with multi ouput (3-outputs). I successfully compiled and load the model as in keras example tutorial.
But I’m only able to load only one output i.e.first output only to numpy empty array. Whereas I tried to load output shapes of the second output as:
m.run()
out_shape = [dim.value if dim.value is not None else 1 for dim in keras_yolo._output_layers[0].output.shape]
tvm_out_1 = m.get_output(0, tvm.nd.empty(out_shape, ‘float32’)).asnumpy()
out_shape_2 = [dim.value if dim.value is not None else 1 for dim in keras_yolo._output_layers[1].output.shape]
tvm_out_2 = m.get_output(1, tvm.nd.empty(out_shape_1, ‘float32’)).asnumpy()
out_shape_3 = [dim.value if dim.value is not None else 1 for dim in keras_yolo._output_layers[2].output.shape]
tvm_out_3 = m.get_output(2, tvm.nd.empty(out_shape_1, ‘float32’)).asnumpy()
Hey @kazum,
I tried with new commit, it is working well. But I’m getting wrong ouputs;(, may be because of different opt_value and build params on opencl.
Thank you so much!!