aboutsummaryrefslogtreecommitdiff
path: root/test.ipynb
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-11-24 20:43:52 +0800
committercrupest <crupest@outlook.com>2021-11-24 20:43:52 +0800
commit04cfc657115bb0f9b26b1b59fcb956fe3abb83d7 (patch)
tree78fe10fb9db60952b89e889aef056c706620322d /test.ipynb
parentd08a3a340a42bbd9616ea910fbad020d7aac212d (diff)
downloadlife-04cfc657115bb0f9b26b1b59fcb956fe3abb83d7.tar.gz
life-04cfc657115bb0f9b26b1b59fcb956fe3abb83d7.tar.bz2
life-04cfc657115bb0f9b26b1b59fcb956fe3abb83d7.zip
Add compile principle experiment 3.
Diffstat (limited to 'test.ipynb')
-rw-r--r--test.ipynb49
1 files changed, 49 insertions, 0 deletions
diff --git a/test.ipynb b/test.ipynb
new file mode 100644
index 0000000..7536d4b
--- /dev/null
+++ b/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
+}