From 67244e004d0e133e526412cf3edee92f0a581160 Mon Sep 17 00:00:00 2001 From: fausan123 Date: Sun, 7 Jun 2020 20:36:29 +0530 Subject: [PATCH 1/3] task1 --- Tasks/daily tasks/Fausan Asharaf/task1.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Tasks/daily tasks/Fausan Asharaf/task1.py diff --git a/Tasks/daily tasks/Fausan Asharaf/task1.py b/Tasks/daily tasks/Fausan Asharaf/task1.py new file mode 100644 index 0000000..74f9cfb --- /dev/null +++ b/Tasks/daily tasks/Fausan Asharaf/task1.py @@ -0,0 +1,10 @@ +import numpy as np +import torch + +a = np.random.randint(10, size=(5, 3)) +b = np.random.randint(10, size=(3, 4)) +a_t = torch.from_numpy(a) +b_t = torch.from_numpy(b) + +c_t = torch.matmul(a_t, b_t) +print(c_t) From afe640410a90a12f3193adcf6ac82981a1bea6d4 Mon Sep 17 00:00:00 2001 From: fausan123 Date: Mon, 8 Jun 2020 13:50:18 +0530 Subject: [PATCH 2/3] .. --- Tasks/daily tasks/Fausan Asharaf/task1.py | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 Tasks/daily tasks/Fausan Asharaf/task1.py diff --git a/Tasks/daily tasks/Fausan Asharaf/task1.py b/Tasks/daily tasks/Fausan Asharaf/task1.py deleted file mode 100644 index 74f9cfb..0000000 --- a/Tasks/daily tasks/Fausan Asharaf/task1.py +++ /dev/null @@ -1,10 +0,0 @@ -import numpy as np -import torch - -a = np.random.randint(10, size=(5, 3)) -b = np.random.randint(10, size=(3, 4)) -a_t = torch.from_numpy(a) -b_t = torch.from_numpy(b) - -c_t = torch.matmul(a_t, b_t) -print(c_t) From 608a25ac321f39507fc7bc501683df70a131d151 Mon Sep 17 00:00:00 2001 From: fausan123 <58265004+fausan123@users.noreply.github.com> Date: Mon, 8 Jun 2020 13:52:09 +0530 Subject: [PATCH 3/3] task1 done --- Tasks/daily tasks/Fausan Asharaf/task1.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 Tasks/daily tasks/Fausan Asharaf/task1.py diff --git a/Tasks/daily tasks/Fausan Asharaf/task1.py b/Tasks/daily tasks/Fausan Asharaf/task1.py new file mode 100644 index 0000000..74f9cfb --- /dev/null +++ b/Tasks/daily tasks/Fausan Asharaf/task1.py @@ -0,0 +1,10 @@ +import numpy as np +import torch + +a = np.random.randint(10, size=(5, 3)) +b = np.random.randint(10, size=(3, 4)) +a_t = torch.from_numpy(a) +b_t = torch.from_numpy(b) + +c_t = torch.matmul(a_t, b_t) +print(c_t)