Comparison between MAC Studio M1 Ultra (20c, 64c, 128GB RAM) vs 2017 Intel i5 MBP (16GB RAM) for the subject matter i.e. memory leakage while using tf.keras.models.predict() for saved model on both machines:
MBP-2017: First prediction takes around 10MB and subsequent calls ~0-1MB
MACSTUDIO-2022: First prediction takes around 150MB and subsequent calls ~70-80MB.
After say 10000 such calls o predict(), while my MBP memory usage stays under 10GB, MACSTUDIO climbs to ~80GB (and counting up for higher number of calls).
Even using keras.backend.clear_session() after each call on MACSTUDIO did not help.
Can anyone having insight on TensorFlow-metal and/or MAC M1 machines help?
Thanks, Bapi