@staticmethod
def slice_tensor_inplace_copy(ctx, node, output_str):
    (slice_tensor, input) = ctx._get_module_input(node)
    dim = node.node_config('dim')
    index = node.node_config('index')
    symbols = str(index)
    for i in range(dim):
        symbols = ','.join([':', symbols])
    return '{slice_tensor}[{symbols}] = {input_tensor}'.format(slice_tensor=slice_tensor, symbols=symbols, input_tensor=input)
@staticmethod
def slice_tensor_inplace_copy(ctx, node, output_str):
    (slice_tensor, input) = ctx._get_module_input(node)
    dim = node.node_config('dim')
    index = node.node_config('index')
    symbols = str(index)
    for i in range(dim):
        symbols = ','.join([':', symbols])
    return '{slice_tensor}[{symbols}] = {input_tensor}'.format(slice_tensor=slice_tensor, symbols=symbols, input_tensor=input)