eduardoleao052 / js-pytorch

A JavaScript library like PyTorch, built from scratch.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code in Simple Autograd Example seems to have capitalization errors

victorsonger opened this issue · comments

Description:
When running the Simple Autograd Example in README, encounter the following error:

      out = torch.matmul(x, w);
                  ^
      TypeError: torch.matmul is not a function

Looks like matmul should be matMul

You are absolutely right lol. Now that you mentioned it, I chose to stick to torch.matmul, since its closer to Pytorch's syntax. Thank you for pointing it out!