Fix TF Rag OOM issue
# What does this PR do?

It seems the only thing is to `gc.collect()`. Thanks @Rocketknight1 for continuous trying.
_The documentation is not available anymore as the PR was closed or merged._