Skip to content

Commit

Permalink
Npy file support
Browse files Browse the repository at this point in the history
NumPy uses a custom binary format to store ndarrays.
This file implements that format.
  • Loading branch information
seanmcl committed Jan 3, 2025
1 parent 8be0e0d commit 1a19f81
Show file tree
Hide file tree
Showing 3 changed files with 412 additions and 0 deletions.
1 change: 1 addition & 0 deletions TensorLib/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ Authors: Jean-Baptiste Tristan, Paul Govereau, Sean McLaughlin

import TensorLib.Common
import TensorLib.Dtype
import TensorLib.Npy
1 change: 1 addition & 0 deletions TensorLib/Common.lean
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ Strides also are empty for scalar arrays.
-/
structure Shape where
val : List Nat
deriving Repr, Inhabited

namespace Shape

Expand Down
Loading

0 comments on commit 1a19f81

Please sign in to comment.