mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-06 09:07:10 +08:00
[Backend] TRT cast GPU input from int64 to int32, output from int32 to int64, and Windows support building CUDA files (#426)
* TRT cast int64 to int32 * windows cmake build cuda src * fix windows cmake error when build cuda src * add a notice in windows gpu build doc * cmake add cuda std=11 * TRT cast output from int32 to int64 * nits * trt get original input output dtype
This commit is contained in:
@@ -55,6 +55,8 @@ FDDataType GetFDDataType(const nvinfer1::DataType& dtype);
|
||||
|
||||
nvinfer1::DataType ReaderDtypeToTrtDtype(int reader_dtype);
|
||||
|
||||
FDDataType ReaderDtypeToFDDtype(int reader_dtype);
|
||||
|
||||
std::vector<int> ToVec(const nvinfer1::Dims& dim);
|
||||
|
||||
template <typename T>
|
||||
@@ -153,6 +155,11 @@ class FDGenericBuffer {
|
||||
//!
|
||||
size_t nbBytes() const { return this->size() * TrtDataTypeSize(mType); }
|
||||
|
||||
//!
|
||||
//! \brief Returns the dtype of the buffer.
|
||||
//!
|
||||
nvinfer1::DataType dtype() const { return mType; }
|
||||
|
||||
//!
|
||||
//! \brief Set user memory buffer for TRT Buffer
|
||||
//!
|
||||
|
Reference in New Issue
Block a user