require either train_net or train_net_param to be specified