You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-9Lines changed: 11 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,19 +12,21 @@ If you find an issue, please [let us know](../..//issues)!
12
12
> Please note, this converter has limited coverage of TensorRT / PyTorch. We created it primarily
13
13
> to easily optimize the models used in the [JetBot](https://github.com/NVIDIA-AI-IOT/jetbot) project. If you find the converter helpful with other models, please [let us know](../..//issues).
> JetCam is tested against a system configured with the [JetCard](http://github.com/NVIDIA-AI-IOT/jetcard) setup. Different system configurations may require additional steps.
24
+
25
+
## Usage
24
26
25
27
Below are some usage examples, for more check out the [notebooks](notebooks).
26
28
27
-
####Convert
29
+
### Convert
28
30
29
31
```python
30
32
from torch2trt import torch2trt
@@ -40,7 +42,7 @@ x = torch.ones((1, 3, 224, 224)).cuda()
40
42
model_trt = torch2trt(model, [x])
41
43
```
42
44
43
-
####Execute
45
+
### Execute
44
46
45
47
We can execute returned ``TRTModule`` just like the original PyTorch model
0 commit comments