tvm_tirx.tirx.script.frame_scope

Contents

tvm_tirx.tirx.script.frame_scope#

tvm_tirx.tirx.script.frame_scope(frames)#

Enter multiple IRBuilder frames without deep nesting.

This function provides a way to enter multiple frames in a single with statement, which is particularly useful when migrating from cases where allocations don’t require nested scopes.

Parameters:

frames (List[frame.StmtFrame]) – The list of frames to enter. Each frame’s __enter__ return value will be collected and returned as a tuple.

Returns:

_FrameScope – A context manager that enters all frames and returns their values.

Return type:

_FrameScope