torch.compiler.list_backends torch.compiler.list_backends(exclude_tags=('debug', 'experimental'))[源代码] 返回可用于传递给 torch.compile(…, backend="name") 的有效字符串。 参数 exclude_tags (可选) – 表示要排除的标签的字符串元组。 返回类型 List[\str]