Placeholder in pytorch

What is the equivalent of tf.placeholder in pytorch?

You can pass tensors directly to modules in PyTorch without placeholder variables.
Have a look at the tutorials for some examples and an introduction. :slight_smile:

2 Likes