Skip to content

Script Error #8

@wyh163

Description

@wyh163

Expected integer literal for index. ModuleList/Sequential indexing is only supported with integer literals. Enumeration is supported, e.g. 'for index, v in enumerate(self): ...':
File "/gemfield/hostpv2/wangyuhang/github/ESPNet/modules/model.py", line 68
output = [self.spp_dw0]
for k in range(1, len(self.spp_dw)):
out_k = self.spp_dwk
~~~~~~~~~~~~~~ <--- HERE
out_k = out_k + output[k - 1]
output.append(out_k)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions