已合并
Correcting the accuracy of annotations #4095
guijianwei创建于 4月22日
Correcting the accuracy of annotations #4095
已合并
guijianwei创建于 4月22日
7 个文件变更+7-7
Mactivation/fatrelu_mul/docs/aclnnFatreluMul.md+1-1
@@ -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);
Mactivation/fatrelu_mul/examples/test_aclnn_fatrelu_mul.cpp+1-1
@@ -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);
Mactivation/gelu_mul/docs/aclnnGeluMul.md+1-1
@@ -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 
Mactivation/gelu_mul/examples/test_aclnn_gelu_mul.cpp+1-1
@@ -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 
Mactivation/squared_relu/docs/aclnnSquaredRelu.md+1-1
@@ -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 
Mactivation/squared_relu/examples/test_aclnn_squared_relu.cpp+1-1
@@ -154,7 +154,7 @@ CHECK_RET(ret == ACL_SUCCESS, LOG_PRINT("aclrtSynchronizeStream failed. ERROR: %
154// 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改154// 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改
155PrintOutResult(outShape, &outDeviceAddr);155PrintOutResult(outShape, &outDeviceAddr);
156 156 
157// 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改157// 6. 释放aclTensor,需要根据具体API的接口定义修改
158aclDestroyTensor(input);158aclDestroyTensor(input);
159aclDestroyTensor(out);159aclDestroyTensor(out);
160 160 
Mexperimental/activation/silu_mul/docs/aclnnSiluMul.md+1-1
@@ -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);