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