- I tried "Running AlexNet on Raspberry Pi with Arm Compute Library" at arm Developmer with Rasberry pi 3B+.
- But some descriptions in this tutial look wrong or old, so it could not work for me by following this tutorial (as for Aug, 2019).
- So I noted the step that worked for me at this gist.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.numpy-site.cfg | |
[mkl] | |
library_dirs = /opt/intel/mkl/lib | |
include_dirs = /opt/intel/mkl/include | |
mkl_libs = mkl_rt | |
lapack_libs = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -ne 2 ]; then | |
echo 'Usage: sh ./this_file.sh {image_path} {output_file_path}' | |
exit 1 | |
fi | |
IMAGE_PATH=${1} | |
OUTPUT_FILE=${2} | |
cd $BASE_DIRECTORY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SUB_DIRECTORY_LIST=(0 1 2 3 4 5 6 7 8 9 a b c d e f) | |
if [ $# -ne 2 ]; then | |
echo 'Usage: sh ./this_file.sh {target_directory} {output_file_path}' | |
exit 1 | |
fi | |
BASE_DIRECTORY=$(cd ${1} && pwd) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import concurrent.futures | |
import argparse | |
import os | |
import glob | |
import csv | |
SUB_DIRECTORIES = list(map(lambda x: str(x), range(0,10) )) + ['a', 'b', 'c', 'd', 'e', 'f'] | |
def generate_list(sub_directory): | |
global label_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rank=`python get_mpi_rank.py` | |
if [ ${rank} -eq 0 ]; then | |
echo 'I am rank 0' | |
elif [ ${rank} -eq 1 ]; then | |
echo 'I am rank 1' | |
elif [ ${rank} -eq 2 ]; then | |
echo 'I am rank 2' | |
elif [ ${rank} -eq 3 ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multiprocessing | |
import queue | |
import argparse | |
import time | |
def task1(out_queue): | |
for i in range(0, 5): | |
out_queue.put(i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multiprocessing | |
import argparse | |
queue = None | |
def task(queue, value): | |
queue.put(value) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from chainer.iterators._statemachine import IteratorState | |
from chainer.iterators._statemachine import iterator_statemachine | |
from chainer.iterators.order_samplers import ShuffleOrderSampler | |
import numpy | |
dataset_length = 100 | |
batch_size = 32 | |
repeat = True | |
order_sampler = ShuffleOrderSampler() |