def __init__(self, eval_node_list, ctx=None, stream=None, policy=None):
    '\n        Parameters\n        ----------\n        eval_node_list: list of nodes whose values need to be computed.\n        ctx: runtime DLContext, default is None which means np.ndarray on cpu\n        topo_order: list of nodes in topological order\n        node_to_shape_map: dict from node to shape of the node\n        node_to_arr_map: dict from node to ndarray.NDArray allocated for node\n        feed_shapes: shapes of feed_dict from last run(...)\n        '
    self.eval_node_list = eval_node_list
    self.ctx = ctx
    if (stream is None):
        self.stream = create_stream_handle(ctx)
    else:
        self.stream = stream
    self.stream.sync()
    self.topo_order = find_topo_sort(self.eval_node_list)
    self.node_to_shape_map = None
    self.node_to_arr_map = None
    self.feed_shapes = None
    self.policy = policy
    if (self.policy == 'swap'):
        self.swap_queue = []
Parameters
----------
eval_node_list: list of nodes whose values need to be computed.
ctx: runtime DLContext, default is None which means np.ndarray on cpu
topo_order: list of nodes in topological order
node_to_shape_map: dict from node to shape of the node
node_to_arr_map: dict from node to ndarray.NDArray allocated for node
feed_shapes: shapes of feed_dict from last run(...)
def __init__(self, eval_node_list, ctx=None, stream=None, policy=None):
    '\n        Parameters\n        ----------\n        eval_node_list: list of nodes whose values need to be computed.\n        ctx: runtime DLContext, default is None which means np.ndarray on cpu\n        topo_order: list of nodes in topological order\n        node_to_shape_map: dict from node to shape of the node\n        node_to_arr_map: dict from node to ndarray.NDArray allocated for node\n        feed_shapes: shapes of feed_dict from last run(...)\n        '
    self.eval_node_list = eval_node_list
    self.ctx = ctx
    if (stream is None):
        self.stream = create_stream_handle(ctx)
    else:
        self.stream = stream
    self.stream.sync()
    self.topo_order = find_topo_sort(self.eval_node_list)
    self.node_to_shape_map = None
    self.node_to_arr_map = None
    self.feed_shapes = None
    self.policy = policy
    if (self.policy == 'swap'):
        self.swap_queue = []