Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Torch-TensorRT v2.4.0

Choose a tag to compare

@lanluo-nvidialanluo-nvidia released this 29 Jul 21:50
77278fe
This commit was created on GitHub.com and signed with GitHub’sverified signature.
GPG key ID:B5690EEEBB952194
Verified
Learn about vigilant mode.

C++ runtime support in Windows Support, Enhanced Dynamic Shape support in Converters, PyTorch 2.4, CUDA 12.4, TensorRT 10.1, Python 3.12

Torch-TensorRT 2.4.0 targets PyTorch 2.4, CUDA 12.4 (builds for CUDA 11.8/12.1 are available via the PyTorch package index -https://download.pytorch.org/whl/cu118https://download.pytorch.org/whl/cu121) and TensorRT 10.1.
This version introduces official support for the C++ runtime on the Windows platform, though it is limited to the dynamo frontend, supporting both AOT and JIT workflows. Users can now utilize both Python and C++ runtimes on Windows. Additionally, this release expands support to include all Aten Core Operators, excepttorch.nonzero, and significantly increases dynamic shape support across more converters. Python 3.12 is supported for the first time in this release.

Full Windows Support

In this release we introduce both C++ and Python runtime support in Windows. Users can now directly optimize PyTorch models with TensorRT on Windows, with no code changes. C++ runtime is the default option and users can enable Python runtime by specifyinguse_python_runtime=True

importtorchimporttorch_tensorrtimporttorchvision.modelsasmodelsmodel=models.resnet18(pretrained=True).eval().to("cuda")input=torch.randn((1,3,224,224)).to("cuda")trt_mod=torch_tensorrt.compile(model,ir="dynamo",inputs=[input])trt_mod(input)

Enhanced Op support in Converters

Support for Converters is near 100% of core ATen. At this point fall back to PyTorch execution is either due to specific limitations of converters or some combination of user compiler settings (e.g.torch_executed_ops, dynamic shape). This release also expands the number of operators that support dynamic shape.dryrun will provide specific information on your model + settings support.

What's Changed

New Contributors

Full Changelog:v2.3.0...v2.4.0

Contributors

  • @narendasan
  • @HolyWu
  • @aakashapoorv
  • @atalman
  • @peri044
  • @laikhtewari
  • @andi4191
  • @chohk88
  • @dependabot
  • @zewenli98
  • @Arktische
  • @bowang007
  • @yoosful
  • @apbose
  • @mfeliz-cruise
  • @gs-olive
  • @cehongwang
  • @keehyuna
  • @lanluo-nvidia
narendasan, HolyWu, and 17 other contributors
Assets14
Loading
2453828936, YuCao16, andre-brainn, akihironitta, chuong98, cristianocolpo, 1ytic, doo5643, and funxyz2 reacted with thumbs up emoji2453828936, AhmadHakami, akihironitta, and chuong98 reacted with laugh emojiNevermindNilas, leo-miyashita, 2453828936, andre-brainn, AhmadHakami, akihironitta, and 1ytic reacted with hooray emoji2453828936, andre-brainn, and akihironitta reacted with heart emoji2453828936, andre-brainn, and akihironitta reacted with rocket emoji2453828936 and akihironitta reacted with eyes emoji
12 people reacted

[8]ページ先頭

©2009-2025 Movatter.jp