![]()
![]()
![]()
print(__file__) # 打印文件当前的位置
相对路径
__dir__ = os.path.dirname(os.path.abspath(__file__))
通过绝对路径加载当前路径名。
sys.path.append(__dir__)
添加环境变量
![]()
FLAGS_allocator_strategy
(始于1.2)
用于选择PaddlePaddle的分配器策略。
取值范围
String型,['naive_best_fit', 'auto_growth']中的一个。缺省值为'naive_best_fit'。
![]()
![]()
![]()
![]()
![]()