For example
Assume the Variables are:
- inputs_a = mx.sym.Variable('inputs_a')
- inputs_b = mx.sym.Variable('inputs_b')
Assume the network is:
- inputs_a[batch_size], 100]-->FullyConnected(10)-->outputs_a[batch, 10]
- inputs_b[batch_size], 50]-->FullyConnected(10)-->outputs_b[batch, 10]
- prediction = outputs_a + outputs_b
Assume the datas(numpy) are:
- data_a which size is [batch_size, 100]
- data_b which size is [batch_size, 50]
- data_label which size is [batch_size, 10]
I want to know how to build the model?
mod = mx.mod.Module(context=mx.gpu(), symbol=prediction,
data_names=['inputs_a', 'inputs_b'], label_names=['label'])
And I want to know how to build the data iter?
train_iter = mx.io.NDArrayIter(data=[data_a, data_b], label=data_label,batch_size=3,data_name=['inputs_a', 'inputs_b'],label_name='label')
But this format is wrong.And I can not find this kind of multi inputdata demo in MXNet's tutorial and API documents.What's more, there are few blog of MXNet demo. So can you show me the right way to do it? Or show me your demo. Thanks!