============================================================
Precision Comparison: CPU vs NPU
============================================================
Max errors: sum=3.05e-05, mean=2.98e-08, std=7.45e-09
PASS: NPU precision within thresholds
============================================================
PRECISION TEST PASSED
============================================================
指标
阈值
实测值
状态
max_error_sum
< 1e-3
3.05e-05
✅ 通过
max_error_mean
< 1e-5
2.98e-08
✅ 通过
max_error_std
< 1e-5
7.45e-09
✅ 通过
输出示例
2026-05-11 08:01:13,904 - INFO - VTP-Base Vision Encoder Ascend NPU Inference
2026-05-11 08:01:19,212 - INFO - Model loaded and moved to npu:0!
2026-05-11 08:01:19,289 - INFO - Using random input tensor (256x256)...
2026-05-11 08:01:19,296 - INFO - Input shape: torch.Size([1, 3, 256, 256])
2026-05-11 08:01:19,296 - INFO - Running inference...
2026-05-11 08:01:25,505 - INFO - Features shape: torch.Size([1, 64])
2026-05-11 08:01:25,506 - INFO - Inference time: 6208.81 ms
2026-05-11 08:01:25,937 - INFO - Features (first 10): [ 0.04618426 -0.0475768 ...]
2026-05-11 08:01:25,937 - INFO - Inference completed successfully!