快捷方式

parse_tensor_dict_string

class tensordict.parse_tensor_dict_string(s: str)

将 TensorDict 的 repr 表示解析为 TensorDict。

注意

此函数旨在用于调试,以便根据 tensordict 的打印输出版本来重现它,不应在实际应用中使用。


© Copyright 2022, Meta。

使用 Sphinx 构建,主题由 Read the Docs 提供。

文档

访问 PyTorch 的综合开发者文档

查看文档

教程

获取针对初学者和高级开发者的深入教程

查看教程

资源

查找开发资源并获得问题的解答

查看资源