So can we use torch.optim.sgd for the optimizer?  and for the type of gradien descent, it depends to how many data that we take for data training.
If we take the entire data that means we do batch gd, if we just take small group of the data that means we do minibatch gd. If we take one sample that means we do stochastic gradient descent. Am i right?