我想确定我的火把模型的模型参数。不幸的是,我不能使用model.parameters()方法,因为不是每个模型都使用torch.nn。我可以从torch.load(model_path)获得的字典中计算模型参数吗?我会把这个和矩阵的列表的长度相加,把维度加起来。model_parameter += len(list) # add 5 if list is 5 long
model_parameter += x.shape[0] * x.shape[1] # xis matrix with
Model clonedModel = (Model)model.Clone(); MessageBox.Show("clone complete and buttons restored to orig size");在模型类中myform = form1;{
return new Model(myfo