Parameter contains tensors with data and gradients. Used to store trainable parameters of Model.
data- returns tensor with initial data.grad- ifis_trainable == truethen attribute will contain the gradients computed and future calls tobackward()will accumulate (add) gradients into it, otherwise grad is an empty tensor.train- setis_trainabletotrue.is_trainable- istrueif gradients need to be computed for thisTensor, false otherwise.