Skip to content

Commit

Permalink
Update source/api_cc/src/DeepPotJAX.cc
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz and coderabbitai[bot] authored Nov 4, 2024
1 parent 2aa6deb commit f16dd92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/api_cc/src/DeepPotJAX.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ inline std::vector<T> get_vector(TFE_Context* ctx,
std::vector<T> result;
tensor_to_vector(result, retval, status);
// deallocate
TFE_DeleteTensorHandle(retval);
TFE_DeleteOp(op);
return result;
}
Expand Down

0 comments on commit f16dd92

Please sign in to comment.