mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Add ArrayDesc destructor to avoid possible stack overflow (#982)
This commit is contained in:
committed by
GitHub
parent
ffff671273
commit
dce4bd74a4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user