SIGN IN SIGN UP

py: add_array() will not add to kv store if value is an empty array (#8774)

* gguf_writer.py: add_array() should not add to kv store if empty

* Apply suggestions from code review

I was wondering if there was a specific reason for `if val` but good to hear we can safely use `len(val == 0`

Co-authored-by: compilade <git@compilade.net>

---------

Co-authored-by: compilade <git@compilade.net>
B
Brian committed
7e72aa74fd676a093eb9970e761085ec22734c71
Parent: 7c27a19
Committed by GitHub <noreply@github.com> on 7/30/2024, 2:57:03 PM