---
# System prepended metadata

title: AI on chip LABs
tags: [Labs, AI, Caslab, Intel-Movidius, Kneron]

---

# AI on chip LABs
###### tags: `Labs` `Caslab` `AI` `Kneron` `Intel-Movidius`

---

## Lab-3
* Board number : 23

---

## Lab-1

### Platform
* GTX 1080 Ti *6 for 24 groups
* Container
    * 4-GB memory
    * 20-GB disk
    * IP : 140.116.164.241:8000
    * jupyter notebook(default port at 8001)
    * package
        >pip3 install tensorflow-gpu keras numpy matplotlib

### Memory limitation
* For Keras
```python=
import keras
import tensorflow as tf
from keras.backend.tensorflow_backend import set_session
tf_config = tf.ConfigProto()
tf_config.gpu_options.per_process_gpu_memory_fraction = 0.5 # 50% GPU memory usage at most
tf_config.gpu_options.allow_growth = True
set_session(tf.Session(config=tf_config))
```
* For Tensorflow
```python=
import tensorflow as tf
tf_config = tf.ConfigProto()
tf_config.gpu_options.per_process_gpu_memory_fraction = 0.5 # 50% GPU memory usage at most
tf_config.gpu_options.allow_growth=True
session = tf.Session(config=tf_config)
```

### Practice