[Python] What does `view()` do in PyTorch?

Discussão em 'Python' iniciado por Stack, Maio 15, 2025.

  1. Stack

    Stack Membro Participativo

    What does view() do to the tensor x? What do negative values mean?

    x = x.view(-1, 16 * 5 * 5)

    Continue reading...

Compartilhe esta Página