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
Read-only runs give an error when close() is called:
run.close()
File "/home/mulhaq/.cache/pypoetry/virtualenvs/compressai-trainer-KZXCvdxM-py3.10/lib/python3.10/site-packages/aim/sdk/run.py", line 695, in close
self._tracker.sequence_infos.clear()
AttributeError: 'RunTracker' object has no attribute 'sequence_infos'
To reproduce
importaimdefto_hash(run):
run.close() # Close each run to prevent "too many open files" error.print(run.hash)
returnrun.hashrepo=aim.Repo(".")
run_hashes= [to_hash(run) forruninrepo.iter_runs()]
Workaround:
importaimdefclose_run(self):
ifself._resourcesisNone:
returnself._resources.close()
ifnotself.read_only: # FIXself._tracker.sequence_infos.clear()
# de-reference trees and other resourcesdelself._resourcesdelself._propsself._resources=Noneself._props=Noneself._cleanup_trees()
defto_hash(run):
close_run(run) # Close each run to prevent "too many open files" error.print(run.hash)
returnrun.hashrepo=aim.Repo(".")
run_hashes= [to_hash(run) forruninrepo.iter_runs()]
Expected behavior
No error.
Environment
Aim Version: 3.17.5
Python version: 3.11
pip version: 23.x
OS: Arch Linux btw
Any other relevant information
Additional context
N/A
The text was updated successfully, but these errors were encountered:
🐛 Bug
Read-only runs give an error when close() is called:
To reproduce
Workaround:
Expected behavior
No error.
Environment
Additional context
N/A
The text was updated successfully, but these errors were encountered: