Skip to content

Instantly share code, notes, and snippets.

Avatar

Keisuke Fukuda keisukefukuda

View GitHub Profile
View gist:82ba63a1aa91ecc8e34a73f143529d98
dataset_info = {
'cifar10': {'class_lables': 10, load_func: get_cifar10},
'cifar100': {'class_lables': 100, load_func: get_cifar100},
}
if args.dataset not in dataset_info:
raise RuntimeError('Invalid dataset choice.')
class_labels = dataset_info[args.dataset]['class_labels']
View ChainerMN pytest error
Fri Apr 12 07:58:03 UTC 2019
================================================================================
In process.sh:
CUDA_VERSION = 9.0
PYTHON_VERSION = 2.7.15
OPENMPI_VERSION = 2.1.3
Chainer = https://github.com/chainer/chainer@master
CuPy = https://github.com/cupy/cupy@master
@keisukefukuda
keisukefukuda / .prototxt
Created Mar 12, 2019
train_pred.prototxt
View .prototxt
name: "OctreeDecoder"
#------------------------------------------------------------------------------------------------------------
# INPUT DATA
#------------------------------------------------------------------------------------------------------------
layer {name: "octree_models" type: "OGNData"
top: "octree_model_values" top: "octree_labels"
ogn_data_param {batch_size: 4 source: "model_names.txt" preload_data: false}}
@keisukefukuda
keisukefukuda / .prototxt
Last active Mar 12, 2019
train_known.prototxt
View .prototxt
name: "OctreeDecoder"
#------------------------------------------------------------------------------------------------------------
# INPUT DATA
#------------------------------------------------------------------------------------------------------------
layer {name: "octree_models" type: "OGNData"
top: "octree_model_values" top: "octree_labels"
ogn_data_param {batch_size: 4 source: "model_names.txt" preload_data: false}}
@keisukefukuda
keisukefukuda / env.sh
Last active Apr 20, 2019
Reedbush環境での最新版Chainerのセットアップ方法
View env.sh
#!/bin/bash
GROUP=$(id -ng)
MYDIR=/lustre/${GROUP}/$USER
export HOME=$MYDIR
. /etc/profile.d/modules.sh
module load cuda9/9.1.85
module load anaconda3/4.3.0
View synctest.py
# Example output
"""
f : 0.000139 [s]
sync after f : 0.870124 [s]
f2 : 0.820720 [s]
sync after f2 : 0.000009 [s]
g : 0.821427 [s]
sync after g : 0.000004 [s]
@keisukefukuda
keisukefukuda / wildcard.c
Last active Dec 4, 2018
Simple recursion-based wildcard matching
View wildcard.c
/*
* Wildcard matching program in recursive algorithm.
*
* Copyright 2018 Keisuke Fukuda
*
* Permission is hereby granted, free of charge, to any person
* obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without
* restriction, including without limitation the rights to use, copy,
* modify, merge, publish, distribute, sublicense, and/or sell copies
View v1.3.x-config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by ucx configure 1.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/home/kfukuda/ucx/install --with-cuda=/usr/local/cuda
## --------- ##
## Platform. ##
View master-config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by ucx configure 1.5, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/home/kfukuda/ucx/install --with-cuda=/usr/local/cuda
## --------- ##
## Platform. ##
View ucx-build-log-v.1.4.x.txt
$ date -u
Fri Sep 7 05:46:50 UTC 2018
$ git checkout -t upstream/v1.4.x
Branch v1.4.x set up to track remote branch v1.4.x from upstream.
Switched to a new branch 'v1.4.x'
$ git show | head -n 1
commit 236b965edc48e3fdbd2bc41552f079420aee6a7d