Skip to content

Add error checking for weight file loading#1

Open
lukehinds wants to merge 1 commit into
TimoSaemann:mainfrom
lukehinds:file-open
Open

Add error checking for weight file loading#1
lukehinds wants to merge 1 commit into
TimoSaemann:mainfrom
lukehinds:file-open

Conversation

@lukehinds
Copy link
Copy Markdown

@lukehinds lukehinds commented Oct 21, 2025

I have not tested below , as only have an MPS device, should be good though

  • Add fopen validation to catch missing weight files
  • Add fread validation for all weight reads (w1, b1, w2, b2)

- Add fopen validation to catch missing weight files
- Add fread validation for all weight reads (w1, b1, w2, b2)

Signed-off-by: Luke Hinds <lukehinds@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant