Skip to content

Commit aab6642

Browse files
authored
Added notebooks and Updated README (#44)
1 parent 8b48115 commit aab6642

File tree

3 files changed

+427
-2
lines changed

3 files changed

+427
-2
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,7 @@ _deps
5959

6060
# Other
6161
.DS_Store
62-
.idea/
62+
.idea/
63+
64+
# Notebooks
65+
.ipynb_checkpoints

README.md

+23-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ This repository provides tutorial code in C++ for deep learning researchers to l
3131
1. [C++](http://www.cplusplus.com/doc/tutorial/introduction/)
3232
2. [CMake](https://cmake.org/download/)
3333
3. [LibTorch v1.4.0](https://pytorch.org/cppdocs/installing.html)
34+
4. [Conda](https://docs.conda.io/projects/conda/en/latest/user-guide/install/download.html)
35+
36+
37+
### For Interactive Tutorials
38+
39+
```bash
40+
conda create --name pytorch-cpp
41+
conda activate pytorch-cpp
42+
conda install xeus-cling notebook -c conda-forge
43+
```
3444

3545
### Fork/Clone and Build
3646

@@ -61,6 +71,15 @@ Some useful options:
6171
cmake --build build
6272
```
6373

74+
### Running Tutorials
75+
76+
```bash
77+
./build/tutorials/basics/pytorch_basics/pytorch_basics
78+
79+
# In general
80+
./build/tutorials/{category}/{topic}/{topic}
81+
```
82+
6483
>**_Note for Windows users:_** <br>
6584
>The CMake script downloads the *Release* version of libtorch, so `--config Release` has to be appended to the build command.
6685
>
@@ -86,4 +105,7 @@ cmake --build build
86105
* [Generative Adversarial Networks](tutorials/advanced/generative_adversarial_network/main.cpp)
87106
* [Variational Auto-Encoder](tutorials/advanced/variational_autoencoder/src/main.cpp)
88107
* [Neural Style Transfer](tutorials/advanced/neural_style_transfer/src/main.cpp)
89-
* [Image Captioning (CNN-RNN)]()
108+
* [Image Captioning (CNN-RNN)]()
109+
110+
### 4. Interactive Tutorials
111+
* [Tensor Slicing](notebooks/tensor_slicing.ipynb)

0 commit comments

Comments
 (0)