Merge pull request #182 from SOVIETIC-BOSS88/patch-14

Update 17_foundations.ipynb Small change
This commit is contained in:
Jeremy Howard 2020-08-16 07:18:13 -07:00 committed by GitHub
commit f2f680d512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1137,7 +1137,7 @@
"torch.einsum('bi,ij,bj->b', a, b, c)\n",
"```\n",
"\n",
"will return a vector of size `b` where the `k`-th coordinate is the sum of `a[k,i] b[i,j] c[k,j]`. This notation is particularly convenient when you have more dimensions because of batches. For example, if you have two batches of matrices and want compute the matrix product per batch, you would could this: \n",
"will return a vector of size `b` where the `k`-th coordinate is the sum of `a[k,i] b[i,j] c[k,j]`. This notation is particularly convenient when you have more dimensions because of batches. For example, if you have two batches of matrices and want to compute the matrix product per batch, you would could this: \n",
"\n",
"```python\n",
"torch.einsum('bik,bkj->bij', a, b)\n",