Skip to content

Commit f177457

Browse files
authored
Merge pull request #78 from AnanthuAjay/patch-1
Create day2.py
2 parents 27745ca + a6e2e4a commit f177457

File tree

1 file changed

+14
-0
lines changed
  • Tasks/daily tasks/Ananthu Ajay

1 file changed

+14
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
from __future__ import absolute_import
2+
from __future__ import division
3+
from __future__ import print_function
4+
import torch
5+
6+
import numpy as np
7+
x = np.random.random((5,3))
8+
y = np.random.random((3,4))
9+
a= torch.from_numpy(x)
10+
b = torch.from_numpy(y)
11+
12+
t=torch.mm(a,b)
13+
14+
print(t)

0 commit comments

Comments
 (0)