I initialize the nn model with
model = ASRModel(idim_list[0] if args.num_encs == 1 else idim_list, odim, args)
and model.parameters() returns the parameter list correctly. But when I declare an optimizer
optimizer = torch.optim.Adam(model.parameters(), weight_decay=args.weight_decay),
an error occurs.image928×262 8.69 KB