Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Torch.jit.script not working with this model #22

Open
WaterKnight1998 opened this issue May 28, 2020 · 2 comments
Open

Torch.jit.script not working with this model #22

WaterKnight1998 opened this issue May 28, 2020 · 2 comments

Comments

@WaterKnight1998
Copy link

I have tried to convert this model to TorchScript using torch.jit.script. However, I am getting this issue:

RuntimeError: 
Expected integer literal for index:
  File "/home/david/Documents/pry/models/archs/hrnet.py", line 228

        for i in range(self.num_branches):
            x[i] = self.branches[i](x[i])
                   ~~~~~~~~~~~~~~~ <--- HERE

        x_fuse = []
@kbegiedza
Copy link

@WaterKnight1998 Did you manage to solve it?

@nistarlwc
Copy link

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants