HF RL Explorer

Task: Convert PyTorch Tensor to Python List

Task: Convert PyTorch Tensor to Python List: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that converts a PyTorch tensor into a Python list. Specifically, you need to handle a tensor of shape 1, 2048, 1, 1 and convert it into a flat Python list of 2048 elements.

The task

Write a Python script that converts a PyTorch tensor into a Python list. Specifically, you need to handle a tensor of shape `[1, 2048, 1, 1]` and convert it into a flat Python list of 2048 elements.

Part of PrimeIntellect/Terminal-Lego-15k.