aboutsummaryrefslogtreecommitdiff
path: root/works/life/test.ipynb
diff options
context:
space:
mode:
Diffstat (limited to 'works/life/test.ipynb')
-rw-r--r--works/life/test.ipynb49
1 files changed, 49 insertions, 0 deletions
diff --git a/works/life/test.ipynb b/works/life/test.ipynb
new file mode 100644
index 0000000..7536d4b
--- /dev/null
+++ b/works/life/test.ipynb
@@ -0,0 +1,49 @@
+{
+ "cells": [
+ {
+ "cell_type": "code",
+ "execution_count": 4,
+ "metadata": {},
+ "outputs": [
+ {
+ "name": "stdout",
+ "output_type": "stream",
+ "text": [
+ "tensor(6)\n"
+ ]
+ }
+ ],
+ "source": [
+ "import torch\n",
+ "\n",
+ "t = torch.tensor([1, 2, 3]);\n",
+ "print(t.sum())\n"
+ ]
+ }
+ ],
+ "metadata": {
+ "interpreter": {
+ "hash": "aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49"
+ },
+ "kernelspec": {
+ "display_name": "Python 3.9.9 64-bit",
+ "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.9.9"
+ },
+ "orig_nbformat": 4
+ },
+ "nbformat": 4,
+ "nbformat_minor": 2
+}