Skip to content
Commit 9cb3a6d2 authored by Eirene Vlassi Pandi's avatar Eirene Vlassi Pandi Committed by Eirene Vlassi Pandi
Browse files

Update save_npy/load_npy, add STORAGE_MAP & get_tosa_dtype_mapping



- Updated save_npy to ensure that the array's dtype matches
the expected storage type.
- Revised load_npy to verify and convert the loaded arrays
dtype to the expected internal type based on the provided TOSA DType.
- Added a new STORAGE_MAP mapping TOSA DType values to their
corresponding internal mldtypes and NumPy storage types.
- Introduced get_tosa_dtype_mapping() to expose a user-friendly
mapping of TOSA dtypes to internal and storage types.

Signed-off-by: Eirene Vlassi Pandi's avatarEirene Vlassi Pandi <eirene.vlassipandi@arm.com>
Change-Id: I6be1446a01e2a9f0861766d1c0488627042eadce
parent ae18298d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment