已合并
修复logit logit_grad注释问题 #4440
倪志浩创建于 4月29日
修复logit logit_grad注释问题 #4440
已合并
共 4 个文件变更+4-4
| @@ -348,7 +348,7 @@ int main() { | |||
| 348 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 | 348 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 |
| 349 | PrintOutResult(outShape, &outDeviceAddr); | 349 | PrintOutResult(outShape, &outDeviceAddr); |
| 350 | 350 | ||
| 351 | - // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 351 | + // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 352 | aclDestroyTensor(input); | 352 | aclDestroyTensor(input); |
| 353 | aclDestroyTensor(out); | 353 | aclDestroyTensor(out); |
| 354 | 354 | ||
| @@ -133,7 +133,7 @@ int main() { | |||
| 133 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 | 133 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 |
| 134 | PrintOutResult(outShape, &outDeviceAddr); | 134 | PrintOutResult(outShape, &outDeviceAddr); |
| 135 | 135 | ||
| 136 | - // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 136 | + // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 137 | aclDestroyTensor(input); | 137 | aclDestroyTensor(input); |
| 138 | aclDestroyTensor(out); | 138 | aclDestroyTensor(out); |
| 139 | 139 | ||
| @@ -374,7 +374,7 @@ int main() { | |||
| 374 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 | 374 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 |
| 375 | PrintOutResult(dxShape, &dxDeviceAddr); | 375 | PrintOutResult(dxShape, &dxDeviceAddr); |
| 376 | 376 | ||
| 377 | - // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 377 | + // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 378 | aclDestroyTensor(x); | 378 | aclDestroyTensor(x); |
| 379 | aclDestroyTensor(dy); | 379 | aclDestroyTensor(dy); |
| 380 | aclDestroyTensor(dx); | 380 | aclDestroyTensor(dx); |
| @@ -146,7 +146,7 @@ int main() { | |||
| 146 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 | 146 | // 5. 获取输出的值,将device侧内存上的结果复制至host侧,需要根据具体API的接口定义修改 |
| 147 | PrintOutResult(dxShape, &dxDeviceAddr); | 147 | PrintOutResult(dxShape, &dxDeviceAddr); |
| 148 | 148 | ||
| 149 | - // 6. 释放aclTensor和aclTensor,需要根据具体API的接口定义修改 | 149 | + // 6. 释放aclTensor,需要根据具体API的接口定义修改 |
| 150 | aclDestroyTensor(x); | 150 | aclDestroyTensor(x); |
| 151 | aclDestroyTensor(dy); | 151 | aclDestroyTensor(dy); |
| 152 | aclDestroyTensor(dx); | 152 | aclDestroyTensor(dx); |