Please use. NET 5,. NET 6, NET 7,. NET 8, NET Framework 4.6, NET Framework 4.61, NET Framework 4.7, NET Framework 4.72, NET Framework 4.8, NET Framework 4.81, and. NET Core 3.1 versions

ModelInferenceTimeRecord 结构

Represents timing measurements for different phases of model inference. 表示模型推理不同阶段的时间测量结果。

Definition

命名空间: DeploySharp.Common
程序集: DeploySharp (在 DeploySharp.dll 中) 版本:0.0.4+6e8a2e904469617cd59619d666c0e272985c0e33
C#
public struct ModelInferenceTimeRecord
Inheritance
Object    ValueType    ModelInferenceTimeRecord

备注

This structure records the time taken for preprocessing input data, the actual model inference, and postprocessing the results. 该结构体记录了输入数据预处理、模型推理和结果后处理所花费的时间。

构造函数

ModelInferenceTimeRecord Initializes a new instance of ModelInferenceTimeRecord. 初始化ModelInferenceTimeRecord结构的新实例。

属性

InferenceTime Gets the time taken for model inference execution in milliseconds. 获取模型推理执行花费的时间(毫秒)。
PostprocessTime Gets the time taken for result postprocessing in milliseconds. 获取结果后处理花费的时间(毫秒)。
PreprocessTime Gets the time taken for input data preprocessing in milliseconds. 获取输入数据预处理花费的时间(毫秒)。
TotalTime Gets the total time taken for the complete inference pipeline in milliseconds. 获取完整推理流程的总时间(毫秒)。

方法

EqualsIndicates whether this instance and a specified object are equal.
(继承自 ValueType。)
GetHashCodeReturns the hash code for this instance.
(继承自 ValueType。)
GetTypeGets the Type of the current instance.
(继承自 Object。)
ToString Returns a formatted string representation of the timing measurements. 返回时间测量结果的格式化字符串表示。
(重写 ValueTypeToString)

参见