def gpu_mem_free():
"""
Memory free on the GPU
Returns
-------
megs_free : float
Number of megabytes of memory free on the GPU used by Theano
"""
global cuda
if cuda is None:
from theano.sandbox import cuda
return cuda.mem_info()[0]/1024./1024
评论列表
文章目录