评价此页

torch.compiler.list_backends#

torch.compiler.list_backends(exclude_tags=('debug', 'experimental'))[source]#

返回可以传递给 torch.compile(…, backend=”name”) 的有效字符串。

参数

exclude_tags (可选) – 一个字符串元组,表示要排除的标签。

返回类型

list[str]