Add ArrayDesc destructor to avoid possible stack overflow (#982)

This commit is contained in:
Angelos Katharopoulos
2024-04-11 11:37:02 -07:00
committed by GitHub
parent ffff671273
commit dce4bd74a4
2 changed files with 32 additions and 0 deletions

View File

@@ -404,6 +404,8 @@ class array {
std::shared_ptr<Primitive> primitive,
std::vector<array> inputs);
~ArrayDesc();
private:
// Initialize size, strides, and other metadata
void init();