__init__.py 278 字节
Newer Older
Q
QI JUN 已提交
1 2
import sys
import core
3
__all__ = ['proto']
Q
QI JUN 已提交
4 5 6 7 8 9 10 11
argv = []
if core.is_compile_gpu():
    argv = list(sys.argv) + [
        "--tryfromenv=fraction_of_gpu_memory_to_use,use_pinned_memory"
    ]
else:
    argv = list(sys.argv) + ["--tryfromenv=use_pinned_memory"]
core.init_gflags(argv)