(beta)torch_npu.npu_ptiou
须知:[object Object] 该接口计划废弃,可以使用
torch_npu.npu_iou接口进行替换。
产品支持情况
| 产品 | 是否支持 |
|---|---|
| [object Object]Atlas A3 训练系列产品[object Object] | √ |
| [object Object]Atlas A2 训练系列产品[object Object] | √ |
| [object Object]Atlas 训练系列产品[object Object] | √ |
| [object Object]Atlas 推理系列产品[object Object] | √ |
功能说明
根据ground-truth和预测区域计算交并比(IoU)或前景交叉比(IoF)。
函数原型
[object Object]
参数说明
- bboxes(
Tensor):输入张量。 - gtboxes(
Tensor):输入张量。 - mode(
int):默认值为0。0为IoU模式,1为IoF模式。
调用示例
[object Object]