├── Hello World.ipynb └── README.md /Hello World.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "code", 5 | "execution_count": 1, 6 | "metadata": { 7 | "collapsed": true 8 | }, 9 | "outputs": [], 10 | "source": [ 11 | "import torch" 12 | ] 13 | }, 14 | { 15 | "cell_type": "code", 16 | "execution_count": 2, 17 | "metadata": { 18 | "collapsed": false 19 | }, 20 | "outputs": [ 21 | { 22 | "name": "stdout", 23 | "output_type": "stream", 24 | "text": [ 25 | "\n", 26 | "1.00000e-45 *\n", 27 | " 0.0000 0.0000 0.0000\n", 28 | " 0.0000 5.6052 0.0000\n", 29 | " 0.0000 0.0000 4.2039\n", 30 | " 0.0000 0.0000 0.0000\n", 31 | " 2.8026 0.0000 0.0000\n", 32 | "[torch.FloatTensor of size 5x3]\n", 33 | "\n" 34 | ] 35 | } 36 | ], 37 | "source": [ 38 | "x = torch.Tensor(5, 3)\n", 39 | "print(x)" 40 | ] 41 | }, 42 | { 43 | "cell_type": "code", 44 | "execution_count": null, 45 | "metadata": { 46 | "collapsed": true 47 | }, 48 | "outputs": [], 49 | "source": [] 50 | } 51 | ], 52 | "metadata": { 53 | "anaconda-cloud": {}, 54 | "kernelspec": { 55 | "display_name": "Python [default]", 56 | "language": "python", 57 | "name": "python2" 58 | }, 59 | "language_info": { 60 | "codemirror_mode": { 61 | "name": "ipython", 62 | "version": 2 63 | }, 64 | "file_extension": ".py", 65 | "mimetype": "text/x-python", 66 | "name": "python", 67 | "nbconvert_exporter": "python", 68 | "pygments_lexer": "ipython2", 69 | "version": "2.7.12" 70 | } 71 | }, 72 | "nbformat": 4, 73 | "nbformat_minor": 1 74 | } 75 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # PyTorch-Programs 2 | 3 | Follow the installation instructions [here](http://pytorch.org/). 4 | --------------------------------------------------------------------------------