Skip to content

Commit

Permalink
2025-02-05 nightly release (236ad21)
Browse files Browse the repository at this point in the history
  • Loading branch information
pytorchbot committed Feb 5, 2025
1 parent d4f92cf commit 8592c6c
Show file tree
Hide file tree
Showing 168 changed files with 3,062 additions and 332 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: ^.github/actions/assigner/dist
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
rev: v5.0.0
hooks:
- id: check-yaml
- id: trailing-whitespace
Expand Down Expand Up @@ -32,7 +32,7 @@ repos:
hooks:
- id: validate-pyproject
- repo: https://github.com/pycqa/isort
rev: 5.13.2
rev: 6.0.0
hooks:
- id: isort
name: isort (python)
Expand All @@ -52,7 +52,7 @@ repos:
- id: black
exclude: ^examples/custom_converters/elu_converter/setup.py|^docs
- repo: https://github.com/crate-ci/typos
rev: v1.22.9
rev: typos-dict-v0.12.4
hooks:
- id: typos
- repo: https://github.com/astral-sh/uv-pre-commit
Expand Down
3 changes: 3 additions & 0 deletions cpp/include/torch_tensorrt/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
STR(TORCH_TENSORRT_MAJOR_VERSION) \
"." STR(TORCH_TENSORRT_MINOR_VERSION) "." STR(TORCH_TENSORRT_PATCH_VERSION)

#define TORCH_TENSORRT_PTQ_DEPRECATION \
[[deprecated( \
"Int8 PTQ Calibrator has been deprecated by TensorRT, please plan on porting to a NVIDIA Model Optimizer Toolkit based workflow. See: https://pytorch.org/TensorRT/tutorials/_rendered_examples/dynamo/vgg16_ptq.html for more details")]]
// Setup namespace aliases for ease of use
namespace torch_tensorrt {
namespace torchscript {}
Expand Down
6 changes: 3 additions & 3 deletions cpp/include/torch_tensorrt/ptq.h
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,8 @@ class Int8CacheCalibrator : Algorithm {
* @param use_cache: bool - use calibration cache
* @return Int8Calibrator<Algorithm, DataLoader>
*/

template <typename Algorithm = nvinfer1::IInt8EntropyCalibrator2, typename DataLoader>
inline Int8Calibrator<Algorithm, DataLoader> make_int8_calibrator(
TORCH_TENSORRT_PTQ_DEPRECATION inline Int8Calibrator<Algorithm, DataLoader> make_int8_calibrator(
DataLoader dataloader,
const std::string& cache_file_path,
bool use_cache) {
Expand Down Expand Up @@ -344,7 +343,8 @@ inline Int8Calibrator<Algorithm, DataLoader> make_int8_calibrator(
* @return Int8CacheCalibrator<Algorithm>
*/
template <typename Algorithm = nvinfer1::IInt8EntropyCalibrator2>
inline Int8CacheCalibrator<Algorithm> make_int8_cache_calibrator(const std::string& cache_file_path) {
TORCH_TENSORRT_PTQ_DEPRECATION inline Int8CacheCalibrator<Algorithm> make_int8_cache_calibrator(
const std::string& cache_file_path) {
return Int8CacheCalibrator<Algorithm>(cache_file_path);
}

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.7.0.dev0+426562f documentation</title>
<title>Class DataType &mdash; Torch-TensorRT v2.7.0.dev0+ceb9aa5 documentation</title>



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


<div class="version">
v2.7.0.dev0+426562f
v2.7.0.dev0+ceb9aa5
</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.7.0.dev0+426562f documentation</title>
<title>Class Device::DeviceType &mdash; Torch-TensorRT v2.7.0.dev0+ceb9aa5 documentation</title>



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


<div class="version">
v2.7.0.dev0+426562f
v2.7.0.dev0+ceb9aa5
</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.7.0.dev0+426562f documentation</title>
<title>Class TensorFormat &mdash; Torch-TensorRT v2.7.0.dev0+ceb9aa5 documentation</title>



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


<div class="version">
v2.7.0.dev0+426562f
v2.7.0.dev0+ceb9aa5
</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.7.0.dev0+426562f documentation</title>
<title>Template Class Int8CacheCalibrator &mdash; Torch-TensorRT v2.7.0.dev0+ceb9aa5 documentation</title>



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


<div class="version">
v2.7.0.dev0+426562f
v2.7.0.dev0+ceb9aa5
</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.7.0.dev0+426562f documentation</title>
<title>Template Class Int8Calibrator &mdash; Torch-TensorRT v2.7.0.dev0+ceb9aa5 documentation</title>



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


<div class="version">
v2.7.0.dev0+426562f
v2.7.0.dev0+ceb9aa5
</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.7.0.dev0+426562f documentation</title>
<title>Define STR &mdash; Torch-TensorRT v2.7.0.dev0+ceb9aa5 documentation</title>



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


<div class="version">
v2.7.0.dev0+426562f
v2.7.0.dev0+ceb9aa5
</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.7.0.dev0+426562f documentation</title>
<title>Define TORCH_TENSORRT_PATCH_VERSION &mdash; Torch-TensorRT v2.7.0.dev0+ceb9aa5 documentation</title>



Expand Down Expand Up @@ -39,7 +39,7 @@
<link rel="stylesheet" href="../_static/css/custom.css" type="text/css" />
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
<link rel="next" title="Define TORCH_TENSORRT_VERSION" href="define_macros_8h_1adad592a7b1b7eed529cdf6acd584c883.html" />
<link rel="next" title="Define TORCH_TENSORRT_PTQ_DEPRECATION" href="define_macros_8h_1a46612a64c219548c5ef03013eb2144ec.html" />
<link rel="prev" title="Define TORCH_TENSORRT_MINOR_VERSION" href="define_macros_8h_1a35703561b26b1a9d2738ad7d58b27827.html" />
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
Expand Down Expand Up @@ -293,7 +293,7 @@


<div class="version">
v2.7.0.dev0+426562f
v2.7.0.dev0+ceb9aa5
</div>


Expand Down Expand Up @@ -514,7 +514,7 @@ <h2>Define Documentation<a class="headerlink" href="#define-documentation" title

<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">

<a href="define_macros_8h_1adad592a7b1b7eed529cdf6acd584c883.html" class="btn btn-neutral float-right" title="Define TORCH_TENSORRT_VERSION" accesskey="n" rel="next">Next <img src="../_static/images/chevron-right-orange.svg" class="next-page"></a>
<a href="define_macros_8h_1a46612a64c219548c5ef03013eb2144ec.html" class="btn btn-neutral float-right" title="Define TORCH_TENSORRT_PTQ_DEPRECATION" accesskey="n" rel="next">Next <img src="../_static/images/chevron-right-orange.svg" class="next-page"></a>


<a href="define_macros_8h_1a35703561b26b1a9d2738ad7d58b27827.html" class="btn btn-neutral" title="Define TORCH_TENSORRT_MINOR_VERSION" accesskey="p" rel="prev"><img src="../_static/images/chevron-right-orange.svg" class="previous-page"> Previous</a>
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.7.0.dev0+426562f documentation</title>
<title>Define TORCH_TENSORRT_MAJOR_VERSION &mdash; Torch-TensorRT v2.7.0.dev0+ceb9aa5 documentation</title>



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


<div class="version">
v2.7.0.dev0+426562f
v2.7.0.dev0+ceb9aa5
</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.7.0.dev0+426562f documentation</title>
<title>Define TORCH_TENSORRT_MINOR_VERSION &mdash; Torch-TensorRT v2.7.0.dev0+ceb9aa5 documentation</title>



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


<div class="version">
v2.7.0.dev0+426562f
v2.7.0.dev0+ceb9aa5
</div>


Expand Down
Loading

0 comments on commit 8592c6c

Please sign in to comment.