update shape_tensor