PyTorch function similar to tf.set_shape

Dose PyTorch has something similar to tf.set_shape(). Link to the TF set_shape.

You can use the .view() function. view

1 Like

You can use either .view() or torch.reshape