Why UserWarning when loading with gluon SymbolBlock?

Hi,

I’m using this gluon doc to load a model from both .params and .json files.
The documentation ignore warnings:

import warnings
with warnings.catch_warnings():
    warnings.simplefilter("ignore")
    deserialized_net = gluon.nn.SymbolBlock.imports("lenet-symbol.json", ['data'], "lenet-0001.params", ctx=ctx)

Yet when I don’t ignore warnings, this warning appears:

UserWarning: Cannot decide type for the following arguments. Consider providing them as input:
	data: None
  input_sym_arg_type = in_param.infer_type()[0]

Why is that? how to avoid this? I’d like to do better than just ignore the warnings :slight_smile: