Hacker News new | ask | show | jobs
by ofrzeta 723 days ago
I didn't understand why a vector is defined as a = torch.tensor([[3], [4], [5], [5]]) and then, a paragraph below, it's a = torch.tensor([1.0, 2.0, 4.0, 8.0]) or b = torch.tensor([1.0, 0.5, 0.25, 0.125])

Also someone might be puzzled by the use of the tensor method while the notion of a tensor has not yet been introduced. I understand that it's quite difficult to introduce all concepts at once, though.

Anyway, thanks for the resource and keep it up!

1 comments

thank you for the feedback! Ah, I can see how switching from column form to row form right away is confusing, especially if someone isn't familiar with all the notation and the code yet. Same with introducing the tensor method without talking about what a tensor is until later. Thanks for pointing this out! I'll make some adjustments.