SAE.py 文件源码

python
阅读 46 收藏 0 点赞 0 评论 0

项目:DL-Benchmarks 作者: DL-Benchmarks 项目源码 文件源码
def time_theano_fn(fn, index, GPU_bool):
    if GPU_bool:
        theano.sandbox.cuda.synchronize()
    start = time.time()*1000
    fn(index)
    if GPU_bool:
        theano.sandbox.cuda.synchronize()
    elapsed_time = time.time()*1000 - start
    return elapsed_time
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号