From a6e2e4a2aefff2a82f14668ca28495ae6a6cef48 Mon Sep 17 00:00:00 2001 From: Ananthu Ajay <44108056+AnanthuAjay@users.noreply.github.com> Date: Mon, 15 Jun 2020 12:25:51 +0530 Subject: [PATCH] Create day2.py --- Tasks/daily tasks/Ananthu Ajay/day2.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Tasks/daily tasks/Ananthu Ajay/day2.py diff --git a/Tasks/daily tasks/Ananthu Ajay/day2.py b/Tasks/daily tasks/Ananthu Ajay/day2.py new file mode 100644 index 0000000..4d713ab --- /dev/null +++ b/Tasks/daily tasks/Ananthu Ajay/day2.py @@ -0,0 +1,14 @@ +from __future__ import absolute_import +from __future__ import division +from __future__ import print_function +import torch + +import numpy as np +x = np.random.random((5,3)) +y = np.random.random((3,4)) +a= torch.from_numpy(x) +b = torch.from_numpy(y) + +t=torch.mm(a,b) + +print(t)