返回顶部 unregister_external_allocator 功能说明将用户基于Stream注册的Allocator销毁,适用于使用用户的内存池场景。 函数原型1unregister_external_allocator(stream: int) -> None 参数说明 参数名 输入/输出 描述 graph_id 输入 图ID。 返回值说明无 约束说明如果graph_id不是整数,抛出TypeError。如果销毁失败,抛出RuntimeError。更多约束请参见约束说明。 父主题: Session接口