parameters: (input_handle,
                           index,
                           item,
                           resize_if_index_out_of_bounds=False,
                           name=None)
return_statement: return output_handle
docstring: Sets `item` at `index` in input list.
docstring_summary: Sets `item` at `index` in input list.
docstring_tokens: Sets item at index in input list .
function: def tensor_list_set_item(input_handle,
                           index,
                           item,
                           resize_if_index_out_of_bounds=False,
                           name=None):
    """Sets `item` at `index` in input list."""
    if resize_if_index_out_of_bounds:
      input_list_size = gen_list_ops.tensor_list_length(input_handle)
      # TODO(srbs): This could cause some slowdown. Consider fusing resize
      # functionality in the SetItem op.
      input_handle = control_flow_ops.cond(
          index >= input_list_size,
          lambda: gen_list_ops.tensor_list_resize(  # pylint: disable=g-long-lambda
              input_handle, index + 1),
          lambda: input_handle)
    output_handle = gen_list_ops.tensor_list_set_item(
        input_handle=input_handle, index=index, item=item, name=name)
    handle_data_util.copy_handle_data(input_handle, output_handle)
    return output_handle
function_tokens: def tensor_list_set_item ( input_handle , index , item , resize_if_index_out_of_bounds = False , name = None ) : if resize_if_index_out_of_bounds : input_list_size = gen_list_ops . tensor_list_length ( input_handle ) # TODO(srbs): This could cause some slowdown. Consider fusing resize # functionality in the SetItem op. input_handle = control_flow_ops . cond ( index >= input_list_size , lambda : gen_list_ops . tensor_list_resize ( # pylint: disable=g-long-lambda input_handle , index + 1 ) , lambda : input_handle ) output_handle = gen_list_ops . tensor_list_set_item ( input_handle = input_handle , index = index , item = item , name = name ) handle_data_util . copy_handle_data ( input_handle , output_handle ) return output_handle