mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-07 21:42:08 -07:00
round created_vram_gb to nearest value.
This commit is contained in:
parent
52f2be80d7
commit
f90b2d231b
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ def getDeviceVRAMTotalGb (idx):
|
||||||
memInfo = nvmlDeviceGetMemoryInfo( handle )
|
memInfo = nvmlDeviceGetMemoryInfo( handle )
|
||||||
result = memInfo.total / (1024*1024*1024)
|
result = memInfo.total / (1024*1024*1024)
|
||||||
nvmlShutdown()
|
nvmlShutdown()
|
||||||
return result
|
return round(result)
|
||||||
|
|
||||||
def getBestDeviceIdx():
|
def getBestDeviceIdx():
|
||||||
nvmlInit()
|
nvmlInit()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue