core/builtin_fns: Add stacksave/stackrestore on some linalg operations with ndstrides #556
Labels
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: M-Labs/nac3#556
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I notice that some linalg operations uses
make_contiguous_array
which may create temporary structs values with its data being weakly owned (i.e. either owned by anotherNDArray
instance or only used for the during of the extern call).We can
stacksave
before creating these temporary values, call the extern linalg functions, andstackpop
to save some memory.