Skip to content

Commit

Permalink
Merge branch 'main' into lluo/add_cross_platform_flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lanluo-nvidia committed Sep 24, 2024
2 parents 697c46b + 43eb560 commit 7ba4af7
Show file tree
Hide file tree
Showing 154 changed files with 2,242 additions and 298 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ repos:
rev: v1.22.9
hooks:
- id: typos
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.4.10
hooks:
# Update the uv lockfile
- id: uv-lock
- repo: local
hooks:
- id: dont-commit-upstream
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/torch_tensorrt/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#define STR(x) XSTR(x)

#define TORCH_TENSORRT_MAJOR_VERSION 2
#define TORCH_TENSORRT_MINOR_VERSION 5
#define TORCH_TENSORRT_MINOR_VERSION 6
#define TORCH_TENSORRT_PATCH_VERSION 0
#define TORCH_TENSORRT_VERSION \
STR(TORCH_TENSORRT_MAJOR_VERSION) \
Expand Down
4 changes: 2 additions & 2 deletions docs/_cpp_api/classtorch__tensorrt_1_1DataType.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Class DataType &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Class DataType &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Class Device::DeviceType &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Class Device::DeviceType &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
4 changes: 2 additions & 2 deletions docs/_cpp_api/classtorch__tensorrt_1_1TensorFormat.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Class TensorFormat &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Class TensorFormat &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Template Class Int8CacheCalibrator &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Template Class Int8CacheCalibrator &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Template Class Int8Calibrator &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Template Class Int8Calibrator &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Define STR &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Define STR &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Define TORCH_TENSORRT_PATCH_VERSION &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Define TORCH_TENSORRT_PATCH_VERSION &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Define TORCH_TENSORRT_MAJOR_VERSION &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Define TORCH_TENSORRT_MAJOR_VERSION &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Define TORCH_TENSORRT_MINOR_VERSION &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Define TORCH_TENSORRT_MINOR_VERSION &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Define TORCHTRT_API &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Define TORCHTRT_API &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Define XSTR &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Define XSTR &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Define TORCHTRT_HIDDEN &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Define TORCHTRT_HIDDEN &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Define TORCH_TENSORRT_VERSION &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Define TORCH_TENSORRT_VERSION &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
4 changes: 2 additions & 2 deletions docs/_cpp_api/dir_cpp.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Directory cpp &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Directory cpp &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -273,7 +273,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
4 changes: 2 additions & 2 deletions docs/_cpp_api/dir_cpp_include.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Directory include &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Directory include &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -273,7 +273,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
4 changes: 2 additions & 2 deletions docs/_cpp_api/dir_cpp_include_torch_tensorrt.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Directory torch_tensorrt &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Directory torch_tensorrt &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -273,7 +273,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Enum Level &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Enum Level &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>Enum EngineCapability &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>Enum EngineCapability &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -275,7 +275,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
4 changes: 2 additions & 2 deletions docs/_cpp_api/file_cpp_include_torch_tensorrt_logging.h.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>File logging.h &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>File logging.h &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -273,7 +273,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
4 changes: 2 additions & 2 deletions docs/_cpp_api/file_cpp_include_torch_tensorrt_macros.h.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>File macros.h &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>File macros.h &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -273,7 +273,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
4 changes: 2 additions & 2 deletions docs/_cpp_api/file_cpp_include_torch_tensorrt_ptq.h.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>File ptq.h &mdash; Torch-TensorRT v2.5.0.dev0+1e9aefe documentation</title>
<title>File ptq.h &mdash; Torch-TensorRT v2.6.0.dev0+a68e52b documentation</title>



Expand Down Expand Up @@ -273,7 +273,7 @@


<div class="version">
v2.5.0.dev0+1e9aefe
v2.6.0.dev0+a68e52b
</div>


Expand Down
Loading

0 comments on commit 7ba4af7

Please sign in to comment.