Order matters for data_names in Module
Hey,
I was creating a Module, and it looks like the order of the list of the data_names matters.
For example,
mod = mx.mod.Module(symbol=net,
context=mx.cpu(),
data_names=['user','item'],
label_names=['score'])
Gave the error: ValueError: Data provided by data_shapes don't match names specified by data_names
However, this works:
mod = mx.mod.Module(symbol=net,
context=mx.cpu(),
data_names=['item','user'],
label_names=['score'])
I don't think it should matter what order you specify the data_names. Is this the expected behavior? If so, there is no documentation on what order the data_names need to be.
Error should show more message. Please paste all.
@yash1 , the order of data_names your pass to Module should same with provider_data and provider_label in data iterator, I guess
This issue is closed due to lack of activity in the last 90 days. Feel free to ping me to reopen if this is still an active issue. Thanks!