I tried the following snippet in google colab
Code:
a = torch.tensor([2.0, 3.0])
b = torch.tensor([5.0, 6.0])

c = torch.stack([a,b], dim = 1)
print(c)
torch.det(c)

Output:
tensor([[2., 5.],
        [3., 6.]])
tensor(-2.9999995232)

The answer should be -3. For my problem statement the outputted answer won’t help, I need it to generate -3. Please help.