Skip to content

Commit 36d8df8

Browse files
author
pytorchbot
committed
2024-05-07 nightly release (4142d3f)
1 parent b254632 commit 36d8df8

File tree

10 files changed

+728
-7
lines changed

10 files changed

+728
-7
lines changed

docsrc/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184
"ConverterImplSignature": "ConverterImplSignature",
185185
}
186186

187+
nbsphinx_execute = "never"
188+
187189
# -- A patch that prevents Sphinx from cross-referencing ivar tags -------
188190
# See http://stackoverflow.com/a/41184353/3343043
189191

docsrc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ Tutorials
111111
tutorials/_rendered_examples/dynamo/torch_compile_transformers_example
112112
tutorials/_rendered_examples/dynamo/torch_compile_advanced_usage
113113
tutorials/_rendered_examples/dynamo/torch_compile_stable_diffusion
114+
tutorials/_rendered_examples/dynamo/custom_kernel_plugins
114115

115116
Python API Documenation
116117
------------------------

docsrc/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
sphinx==4.5.0
1+
sphinx==5.0.1
22
sphinx-gallery==0.13.0
3-
breathe==4.33.1
4-
exhale==0.3.1
3+
breathe==4.34.0
4+
exhale==0.3.7
55
-e git+https://github.com/pytorch/pytorch_sphinx_theme.git#egg=pytorch_sphinx_theme
6-
nbsphinx==0.8.8
6+
nbsphinx==0.9.3
77
docutils==0.17.1
88
pillow

docsrc/sg_execution_times.rst

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
:orphan:
3+
4+
.. _sphx_glr_sg_execution_times:
5+
6+
7+
Computation times
8+
=================
9+
**00:00.000** total execution time for 4 files **from all galleries**:
10+
11+
.. container::
12+
13+
.. raw:: html
14+
15+
<style scoped>
16+
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet" />
17+
<link href="https://cdn.datatables.net/1.13.6/css/dataTables.bootstrap5.min.css" rel="stylesheet" />
18+
</style>
19+
<script src="https://code.jquery.com/jquery-3.7.0.js"></script>
20+
<script src="https://cdn.datatables.net/1.13.6/js/jquery.dataTables.min.js"></script>
21+
<script src="https://cdn.datatables.net/1.13.6/js/dataTables.bootstrap5.min.js"></script>
22+
<script type="text/javascript" class="init">
23+
$(document).ready( function () {
24+
$('table.sg-datatable').DataTable({order: [[1, 'desc']]});
25+
} );
26+
</script>
27+
28+
.. list-table::
29+
:header-rows: 1
30+
:class: table table-striped sg-datatable
31+
32+
* - Example
33+
- Time
34+
- Mem (MB)
35+
* - :ref:`sphx_glr_tutorials__rendered_examples_dynamo_torch_compile_advanced_usage.py` (``../examples/dynamo/torch_compile_advanced_usage.py``)
36+
- 00:00.000
37+
- 0.0
38+
* - :ref:`sphx_glr_tutorials__rendered_examples_dynamo_torch_compile_resnet_example.py` (``../examples/dynamo/torch_compile_resnet_example.py``)
39+
- 00:00.000
40+
- 0.0
41+
* - :ref:`sphx_glr_tutorials__rendered_examples_dynamo_torch_compile_stable_diffusion.py` (``../examples/dynamo/torch_compile_stable_diffusion.py``)
42+
- 00:00.000
43+
- 0.0
44+
* - :ref:`sphx_glr_tutorials__rendered_examples_dynamo_torch_compile_transformers_example.py` (``../examples/dynamo/torch_compile_transformers_example.py``)
45+
- 00:00.000
46+
- 0.0
17.2 KB
Loading

docsrc/user_guide/saving_models.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Here's an example usage
3535
inputs = [torch.randn((1, 3, 224, 224)).cuda()]
3636
# trt_ep is a torch.fx.GraphModule object
3737
trt_gm = torch_tensorrt.compile(model, ir="dynamo", inputs)
38-
torchtrt.save(trt_gm, "trt.ep", inputs=inputs)
38+
torch_tensorrt.save(trt_gm, "trt.ep", inputs=inputs)
3939
4040
# Later, you can load it and run inference
4141
model = torch.export.load("trt.ep").module()
@@ -97,4 +97,4 @@ Here's an example usage
9797
# file_path can be trt.ep or trt.ts file obtained via saving the model (refer to the above section)
9898
inputs = [torch.randn((1, 3, 224, 224)).cuda()]
9999
model = torch_tensorrt.load(<file_path>).module()
100-
model(*inputs)
100+
model(*inputs)

examples/dynamo/README.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ a number of ways you can leverage this backend to accelerate inference.
1010
* :ref:`torch_compile_transformer`: Compiling a Transformer model using ``torch.compile``
1111
* :ref:`torch_compile_advanced_usage`: Advanced usage including making a custom backend to use directly with the ``torch.compile`` API
1212
* :ref:`torch_compile_stable_diffusion`: Compiling a Stable Diffusion model using ``torch.compile``
13+
* :ref:`custom_kernel_plugins`: Creating a plugin to use a custom kernel inside TensorRT engines

0 commit comments

Comments
 (0)