Comments (3)
Hi lawrencekiba,
Thanks for reaching out.
Currently multiple inputs are accepted as a list. For example,
model_trt = torch2trt(model, [input_0, input_1, input_2])
Should work. If you have something in a dict format, you could consider creating a wrapper PyTorch module that converts from a dict to list, this would likely work as well.
Please let me know if you have any questions.
Best,
John
from torch2trt.
Ah, that sounds great. For now, I'm good. Will close this one first & proceed to try it out.
Thank you!
from torch2trt.
Does torch2trt support for dict input now?
from torch2trt.
Related Issues (20)
- ValueError: len() should return >= 0 with LPPool2d operator HOT 2
- TypeError: 'int' object is not iterable when using torch2trt to convert a PyTorch model with Transformer operator HOT 1
- torch_dim_to_trt_axes does not handle dim=-1 correctly
- Inconsistent inference results between PyTorch and converted TensorRT model using with GumbelSoftmax operator
- Inconsistent inference results between PyTorch and converted TensorRT model using with LogSoftmax operator
- Inconsistent inference results between PyTorch and converted TensorRT model using with Softplus operator
- Inconsistent inference results between PyTorch and converted TensorRT model using with Silu operator
- Inconsistent inference results between PyTorch and converted TensorRT model using with Normalize operator
- Inconsistent inference results between PyTorch and converted TensorRT model using with Linear operator
- Inconsistent inference results between PyTorch and converted TensorRT model with AvgPool2d operator
- Inconsistent inference results between PyTorch and converted TensorRT model with Pad operator
- repvggblock in torch2trt
- Inconsistent inference results between PyTorch and converted TensorRT model with Selu operator
- Inconsistent inference results between PyTorch and converted TensorRT model with MaxPool2d operator
- Inconsistent inference results between PyTorch and converted TensorRT model with BatchNorm or InstanceNorm operator
- Inconsistent inference results between PyTorch and converted TensorRT model with Interpolate operator
- Inconsistent inference results between PyTorch and converted TensorRT model with ConvTranspose2d operator
- 'tensorrt.tensorrt.Builder' object has no attribute 'build_cuda_engine'
- python model successfully tested on polygraphy tensorrt, but failed, when loading on torch2trt
- torch2trt shows error when converting a model, even though regular pytorch -> onnx -> tensorrt and inference is successful
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from torch2trt.