赞
踩
1. list indices must be integers or slices, not tuple
2.查看类型-程序debug后,鼠标放置对应位置即可查看
readout_244:列表样式
[AddReadout(), AddReadout(), AddReadout(), AddReadout()]
readout_384: 内部元组样式
- [
- ProjectReadout(
- (project):Sequential(
- (0):Linear(in_featurers=1536, out_features=768, bias=True)
- (1):GELU()
- )
- ),
-
- ProjectReadout(
- (project):Sequential(
- (0):Linear(in_featurers=1536, out_features=768, bias=True)
- (1):GELU()
- )
- ),
-
- ProjectReadout(
- (project):Sequential(
- (0):Linear(in_featurers=1536, out_features=768, bias=True)
- (1):GELU()
- )
- ),
-
- ProjectReadout(
- (project):Sequential(
- (0):Linear(in_featurers=1536, out_features=768, bias=True)
- (1):GELU()
- )
- )
- ]
显然格式不符合,考虑进一步修改!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。