mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

Order matters for data_names in Module

Open yash1 opened this issue 9 years ago • 3 comments

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.

yash1 avatar Jun 24 '17 08:06 yash1

Error should show more message. Please paste all.

formath avatar Jun 26 '17 04:06 formath

@yash1 , the order of data_names your pass to Module should same with provider_data and provider_label in data iterator, I guess

hanpum avatar Jun 27 '17 09:06 hanpum

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!

szha avatar Sep 30 '17 19:09 szha