Skip to content

Commit 018fb2d

Browse files
committed
Fix task
1 parent 7160f77 commit 018fb2d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

PyTorch_1/1_tensors.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
{
1111
"cell_type": "code",
12-
"execution_count": null,
12+
"execution_count": 2,
1313
"metadata": {},
1414
"outputs": [],
1515
"source": [
@@ -160,10 +160,10 @@
160160
"1. Create a tensor `D` with shape (3, 3) using the `torch.eye()` function.\n",
161161
"2. Perform the following operations and print the results:\n",
162162
" 1. Multiply tensor `A` and tensor `D` using the `torch.matmul()` function.\n",
163-
" 2. Calculate the dot product of tensor `A` and tensor `D` using the `torch.dot()` function.\n",
164-
"3. Create a tensor `E` with shape (2, 2) using the `torch.rand()` function.\n",
163+
" 2. Calculate the matrix multiplication of tensor `A` and tensor `D` using the `torch.dot()` function.\n",
164+
"3. Create a tensor `E` with shape (2, 1) using the `torch.rand()` function.\n",
165165
"4. Print the size of tensor `E` and then squeeze its dimensions using the `torch.squeeze()` function. Print the size of the squeezed tensor.\n",
166-
"5. Compare tensor `A` and tensor `B` element-wise using the `torch.eq()` function. Print the result."
166+
"5. Compare tensor `A` and tensor `B` element-wise using the `torch.eq()` function and print the result."
167167
]
168168
},
169169
{

0 commit comments

Comments
 (0)