question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can not convert interpolate

See original GitHub issue
> python3 -m torch2trt.test --name=interpolate
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.7/site-packages/torch2trt-0.0.0-py3.7.egg/torch2trt/test.py", line 100, in <module>
    max_error, fps, fps_trt, ms, ms_trt = run(test)
  File "/usr/local/lib/python3.7/site-packages/torch2trt-0.0.0-py3.7.egg/torch2trt/test.py", line 25, in run
    module_trt = torch2trt(module, inputs, **self.torch2trt_kwargs)
  File "/usr/local/lib/python3.7/site-packages/torch2trt-0.0.0-py3.7.egg/torch2trt/torch2trt.py", line 252, in torch2trt
    outputs = module(*inputs)
  File "/usr/local/lib/python3.7/site-packages/torch/nn/modules/module.py", line 539, in __call__
    result = self.forward(*input, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/torch2trt-0.0.0-py3.7.egg/torch2trt/converters/interpolate/interpolate.py", line 49, in forward
    return F.interpolate(x, self.size, mode=self.mode, align_corners=self.align_corners)
  File "/usr/local/lib/python3.7/site-packages/torch2trt-0.0.0-py3.7.egg/torch2trt/torch2trt.py", line 97, in wrapper
    converter(ctx)
  File "/usr/local/lib/python3.7/site-packages/torch2trt-0.0.0-py3.7.egg/torch2trt/converters/interpolate/interpolate.py", line 34, in convert_interpolate
    plugin = get_interpolate_plugin(size=size, mode=mode, align_corners=align_corners)
  File "/usr/local/lib/python3.7/site-packages/torch2trt-0.0.0-py3.7.egg/torch2trt/converters/interpolate/interpolate.py", line 11, in get_interpolate_plugin
    creator = [c for c in registry.plugin_creator_list if c.name == PLUGIN_NAME and c.plugin_namespace == 'torch2trt'][0]
IndexError: list index out of range

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
GeoffreyChen777commented, Aug 1, 2019

@sonack You can email me your wechat id.

0reactions
GeoffreyChen777commented, Apr 4, 2020

@duanwenhong Hi, I haven’t used this code for a long time. I’m sorry that I cannot provide any useful information.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I am trying to do an interpolation with IDW and I get TypeError
I am trying to do an interpolation with IDW and I get TypeError: cannot convert the series to <class 'float'>.
Read more >
How to get convert to not interpolate pixels?
Please run the file command on your output file and post the output (hopefully it will tell us the resolution). – Ned64. Mar...
Read more >
The EXPAND Procedure
When a curve fitting method is used, converting to a lower frequency is no different than converting to a higher frequency–you just specify...
Read more >
Explore string interpolation handlers - Microsoft Learn
This advanced tutorial shows how you can write a custom string interpolation handler that hooks into the runtime processing of an ...
Read more >
ERDDAP - Convert Nearest Data
This converter efficiently interpolates values from a gridded dataset's values. ... If you don't specify an algorithm, Bilinear/4 will be used. Mean
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found