Comments (6)
Hi @gs-olive, this is not right, there is complie error:
error: ‘set_multi_device_safe_mode’ is not a member of ‘torch_tensorrt::core::runtime’
27 | torch_tensorrt::core::runtime::set_multi_device_safe_mode(true);
from tensorrt.
This is a similar compilation error.
error: ‘torch::ops’ has not been declared
24 | torch::ops::tensorrt::get_multi_device_safe_mode(true);
I searched the libtorch and torch-TensorRT header files, and there are no functions related to multi_device_safe_mode.
from tensorrt.
Moreover, when the model infers using forward function, there are these warnings:
WARNING: [Torch-TensorRT] - Using default stream in enqueue()/enqueueV2()/enqueueV3() may lead to performance issues due to additional cudaDeviceSynchronize() calls by TensorRT to ensure correct synchronizations. Please use non-default stream instead.
WARNING: [Torch-TensorRT] - Using default stream in enqueue()/enqueueV2()/enqueueV3() may lead to performance issues due to additional cudaDeviceSynchronize() calls by TensorRT to ensure correct synchronizations. Please use non-default stream instead.
WARNING: [Torch-TensorRT] - Using default stream in enqueue()/enqueueV2()/enqueueV3() may lead to performance issues due to additional cudaDeviceSynchronize() calls by TensorRT to ensure correct synchronizations. Please use non-default stream instead.
from tensorrt.
Hi @demuxin - thanks for the report - we likely need to add getter
/setter
methods to toggle this value in C++ as well:
TensorRT/core/runtime/runtime.cpp
Line 10 in 07c5b07
Similar to the following functions:
TensorRT/core/runtime/register_jit_hooks.cpp
Lines 121 to 122 in 07c5b07
We are aware of the default stream warning and are working on this. It should not have a substantial effect on inference from what I've seen
from tensorrt.
These may actually already be accessible in C++, prior to inference, could you try adding the line:
torch_tensorrt::core::runtime::set_multi_device_safe_mode(true)
from tensorrt.
Does torch::ops::tensorrt::get_multi_device_safe_mode()
exist, or does this also cause a compilation error?
from tensorrt.
Related Issues (20)
- ✨[Feature] Handling Scalar type outputs on the boundry between TensorRT and PyTorch subgraphs
- 🐛 [Bug] An assertion error when upgrading to enqueueV3 interface
- 🐛 [Bug] RuntimeError: [Error thrown at core/util/trt_util.cpp:320] Expected type to be true but got false HOT 2
- ✨[Feature] Autogen TRT Plugins
- 🐛 [Bug] Nightly import fails HOT 2
- ❓ [Question] Model inference is much slower after updating to TensorRT 9.3 HOT 1
- 🐛 [Bug] failed to install torch-tensorrt HOT 1
- 🐛 [Bug] error: backend='torch_tensorrt' raised: TypeError: pybind11::init(): factory function returned nullptr HOT 4
- aten.atan2.out
- ❓ [Question] How to specific aten operators must be run by LibTorch in C++? HOT 7
- 🐛 [Bug] Llama-2-7b on a 4090 GPU
- Add support for `torch.ops.aten.baddbmm.default`
- Add support for `torch.ops.aten.full_like.default`
- Remove `ShapeProp` Pass
- 🐛 [Bug] A Segmentation fault occurs when torchtrt::ts::compile using Torch-TensorRT HOT 2
- 🐛 [Bug] torch.export fails to export embedding_bag_aten layer in a standalone test HOT 2
- ↔ [Converter] Add support for aten.diagonal
- 🐛 [Bug] Unable to freeze tensor of type Int64/Float64 into constant layer HOT 4
- 🐛 [Bug] `aten.scatter.value` converter error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorrt.