TensorRT 10.8.0
nvinfer1::IAlgorithmVariant 类参考

提供一个唯一的 128 位标识符,该标识符以及输入和输出信息表示算法的变体,可用于使用 IAlgorithmSelector::selectAlgorithms() 选择或重现算法。 更多...

#include <NvInfer.h>

nvinfer1::IAlgorithmVariant 的继承关系图
nvinfer1::INoCopy

公共成员函数

int64_t getImplementation () const noexcept
 返回算法的实现。 更多...
 
int64_t getTactic () const noexcept
 返回算法的策略。 更多...
 

保护成员函数

virtual ~IAlgorithmVariant () noexcept=default
 
- 继承自 nvinfer1::INoCopy 的保护成员函数
 INoCopy ()=default
 
virtual ~INoCopy ()=default
 
 INoCopy (INoCopy const &other)=delete
 
INoCopyoperator= (INoCopy const &other)=delete
 
 INoCopy (INoCopy &&other)=delete
 
INoCopyoperator= (INoCopy &&other)=delete
 

保护属性

apiv::VAlgorithmVariant * mImpl
 

详细描述

提供一个唯一的 128 位标识符,该标识符以及输入和输出信息表示算法的变体,可用于使用 IAlgorithmSelector::selectAlgorithms() 选择或重现算法。

另请参阅
IAlgorithmIOInfo, IAlgorithm, IAlgorithmSelector::selectAlgorithms()
注意
单个实现可以有多个策略。
警告
请勿从此类继承,这样做会破坏 API 和 ABI 的向前兼容性。
已弃用
在 TensorRT 10.8 中已弃用。请在 ITimingCache 中使用可编辑模式代替。

构造函数 & 析构函数文档

◆ ~IAlgorithmVariant()

virtual nvinfer1::IAlgorithmVariant::~IAlgorithmVariant ( )
protectedvirtualdefaultnoexcept

成员函数文档

◆ getImplementation()

int64_t nvinfer1::IAlgorithmVariant::getImplementation ( ) const
inlinenoexcept

返回算法的实现。

◆ getTactic()

int64_t nvinfer1::IAlgorithmVariant::getTactic ( ) const
inlinenoexcept

返回算法的策略。

成员数据文档

◆ mImpl

apiv::VAlgorithmVariant* nvinfer1::IAlgorithmVariant::mImpl
protected

此类文档生成自以下文件

  Copyright © 2024 NVIDIA Corporation
  隐私政策 | 管理我的隐私 | 请勿出售或分享我的数据 | 服务条款 | 无障碍访问 | 公司政策 | 产品安全 | 联系方式