Plot ellipse with pytorch

I want to plot ellipse with pytorch, Convert the below code to pytorch.

def ellipse(n, R=1):  
theta = random.uniform(0, 360, n)
X1 = R * np.cos(theta)
X2 = R * np.sin(theta)

X1 = X1.reshape(n, 1)
X2 = X2.reshape(n, 1)
X = hstack((X1, X2))
y = ones((n, 1))
return X, y

@Vijish_Madhavan plotting ellipse in pytorch does not make sense. Any numpy array can be converted to a Tensor

a=np.array([1,2,3])
torch.Tensor(a)

Is there more to this?