As I see from the examples in CUDA semantics — PyTorch master documentation 3 ,  the real input has the exact same shape of the static input of the initial recording of the graph.
Can we use torch tensor of different shape (i.e, different batch size) for the real input?
Moreover, can we use an object instead of torch.Tensor for the input? The object have several fields which are of torch.Tensor
Does the concern of using different shape of data have anything to do with the graph memory management? I can’t really understand the part in the Graph Memory Management Section