notes

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 80924d21b2a706cb2c6da0bc38f560aabc6de391
parent a60e2476686b4bda4c8927c2fd01526749401704
Author: Andrew Laack <andrew@laack.co>
Date:   Tue, 10 Jun 2025 17:17:39 -0500

Created venv for python3.11.5 and verified it works as expected.

Diffstat:
M.gitignore | 5+++--
Apytorch/tensor-multiplication.ipynb | 54++++++++++++++++++++++++++++++++++++++++++++++++++++++
Dtesting/test.py | 1-
3 files changed, 57 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -2,4 +2,5 @@ *.aux *.log *.toc -.venv/*- \ No newline at end of file +.venv/* +myenv+ \ No newline at end of file diff --git a/pytorch/tensor-multiplication.ipynb b/pytorch/tensor-multiplication.ipynb @@ -0,0 +1,54 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 15, + "id": "4c9b6198", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "tensor([[ 2, 2, 1],\n", + " [ 4, 9, 5],\n", + " [ 4, 6, 10]])" + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import torch\n", + "\n", + "\n", + "t1 = torch.tensor(data=[[2,2,1], [2, 3, 1], [1, 3, 5]])\n", + "t2 = torch.tensor(data=[[1,1,1], [2, 3, 5], [4, 2, 2]])\n", + "\n", + "torch.mul(t1, t2)" + ] + } + ], + "metadata": { + "kernelspec": { + "display_name": "myenv", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.5" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/testing/test.py b/testing/test.py @@ -1 +0,0 @@ -import torch