mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-08-21 05:53:25 -07:00
fix
This commit is contained in:
parent
7bd9398a90
commit
03212982e6
1 changed files with 6 additions and 4 deletions
|
@ -210,6 +210,8 @@ class Device:
|
|||
"""
|
||||
pool = self._pooled_buffers
|
||||
mems = [ (k,x) for k in pool.keys() for x in pool[k] ]
|
||||
|
||||
if len(mems) != 0:
|
||||
mems = random.sample(mems, max(1,int(len(mems)*0.25)) )
|
||||
for k, mem in mems:
|
||||
self._cl_mem_free(mem)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue