The program broke when it goes to "trainer.step(batch_size)",and the console prints:
mxnet.gluon.parameter.DeferredInitializationError: Parameter 'resnet0_dense0_weight' has not been initialized yet because initialization was deferred. Actual initialization happens during the first forward pass. Please pass one batch of data through the network before accessing Parameters. You can also avoid deferred initialization by specifying in_units, num_features, etc., for network layers.
The program broke when it goes to "trainer.step(batch_size)",and the console prints: mxnet.gluon.parameter.DeferredInitializationError: Parameter 'resnet0_dense0_weight' has not been initialized yet because initialization was deferred. Actual initialization happens during the first forward pass. Please pass one batch of data through the network before accessing Parameters. You can also avoid deferred initialization by specifying in_units, num_features, etc., for network layers.
How to fix it,please?