已合并
Correcting the accuracy of annotations #4095
guijianwei创建于 4月22日
Correcting the accuracy of annotations #4095
已合并
共 7 个文件变更+7-7
| @@ -373,7 +373,7 @@ int main() { | |||
| 373 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 | 373 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 |
| 374 | PrintOutResult(outShape, &outDeviceAddr); | 374 | PrintOutResult(outShape, &outDeviceAddr); |
| 375 | 375 | ||
| 376 | // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 376 | // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 377 | aclDestroyTensor(input); | 377 | aclDestroyTensor(input); |
| 378 | aclDestroyTensor(threshold); | 378 | aclDestroyTensor(threshold); |
| 379 | aclDestroyTensor(out); | 379 | aclDestroyTensor(out); |
| @@ -143,7 +143,7 @@ int main() { | |||
| 143 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 | 143 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 |
| 144 | PrintOutResult(outShape, &outDeviceAddr); | 144 | PrintOutResult(outShape, &outDeviceAddr); |
| 145 | 145 | ||
| 146 | // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 146 | // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 147 | aclDestroyTensor(input); | 147 | aclDestroyTensor(input); |
| 148 | aclDestroyTensor(threshold); | 148 | aclDestroyTensor(threshold); |
| 149 | aclDestroyTensor(out); | 149 | aclDestroyTensor(out); |
| @@ -366,7 +366,7 @@ int main() { | |||
| 366 | PrintOutResult(outShape, &outDeviceAddr); | 366 | PrintOutResult(outShape, &outDeviceAddr); |
| 367 | 367 | ||
| 368 | 368 | ||
| 369 | // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 369 | // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 370 | aclDestroyTensor(input); | 370 | aclDestroyTensor(input); |
| 371 | aclDestroyTensor(out); | 371 | aclDestroyTensor(out); |
| 372 | 372 | ||
| @@ -134,7 +134,7 @@ int main() { | |||
| 134 | PrintOutResult(outShape, &outDeviceAddr); | 134 | PrintOutResult(outShape, &outDeviceAddr); |
| 135 | 135 | ||
| 136 | 136 | ||
| 137 | // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 137 | // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 138 | aclDestroyTensor(input); | 138 | aclDestroyTensor(input); |
| 139 | aclDestroyTensor(out); | 139 | aclDestroyTensor(out); |
| 140 | 140 | ||
| @@ -357,7 +357,7 @@ int main() { | |||
| 357 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 | 357 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 |
| 358 | PrintOutResult(outShape, &outDeviceAddr); | 358 | PrintOutResult(outShape, &outDeviceAddr); |
| 359 | 359 | ||
| 360 | // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 360 | // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 361 | aclDestroyTensor(input); | 361 | aclDestroyTensor(input); |
| 362 | aclDestroyTensor(out); | 362 | aclDestroyTensor(out); |
| 363 | 363 | ||
| @@ -154,7 +154,7 @@ CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclrtSynchronizeStream failed. ERROR: % | |||
| 154 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 | 154 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 |
| 155 | PrintOutResult(outShape, &outDeviceAddr); | 155 | PrintOutResult(outShape, &outDeviceAddr); |
| 156 | 156 | ||
| 157 | // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 157 | // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 158 | aclDestroyTensor(input); | 158 | aclDestroyTensor(input); |
| 159 | aclDestroyTensor(out); | 159 | aclDestroyTensor(out); |
| 160 | 160 | ||
| @@ -338,7 +338,7 @@ int main() { | |||
| 338 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 | 338 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 |
| 339 | PrintOutResult(outShape, &outDeviceAddr); | 339 | PrintOutResult(outShape, &outDeviceAddr); |
| 340 | 340 | ||
| 341 | // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 341 | // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 342 | aclDestroyTensor(inputX); | 342 | aclDestroyTensor(inputX); |
| 343 | aclDestroyTensor(inputY); | 343 | aclDestroyTensor(inputY); |
| 344 | aclDestroyTensor(out); | 344 | aclDestroyTensor(out); |