You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation for Experiment.add_artifact suggests that it's possible to pass bytes, but it doesn't work, and I don't see it in the code. It would be tremendously useful to be able to save arbitrary bytes as an artifact. Is there a way to access this functionality?
The text was updated successfully, but these errors were encountered:
The documentation is actually correct, that's (almost) the type annotation of os.PathLike (https://docs.python.org/3/library/os.html#os.PathLike). So, you can path a file path as bytes (as stated in the docs), but no raw binary data. It's meant to log artifact files that you already created. Raw data wouldn't work with all observers (currently).
What is your use-case that you can't dump the file to disk before logging?
Oh, I see. I must misunderstand the meaning of bytes in this case. My use case doesn't prevent me from dumping the file to disk, it's just an extra, inconvenient step, when the data's only purpose is to land in sacred's database.
The documentation for
Experiment.add_artifact
suggests that it's possible to passbytes
, but it doesn't work, and I don't see it in the code. It would be tremendously useful to be able to save arbitrarybytes
as an artifact. Is there a way to access this functionality?The text was updated successfully, but these errors were encountered: