def __enter__(self) 函数功能上下文管理器进入操作,记录之前Stream,切换当前Stream为传入Stream。 函数原型def __enter__(self) 返回值说明无 父主题: class mindietorch.npu.StreamContext