Skip to content

Instantly share code, notes, and snippets.

View keisukefukuda's full-sized avatar

Keisuke Fukuda keisukefukuda

View GitHub Profile
api_token = "3194646246-8381798388480-knIxqKpkvCszsCN771p....."
channel_id = "N73D8.."
import http.client
import json
import getpass
import subprocess
import time
def post_message_to_slack(api_token, channel_id, message):
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2021/05/01
2021/05/02
2021/05/03
2021/05/04
2021/05/05
2021/05/06
2021/05/09
2021/05/10
2021/05/11
2021/05/12
#include <iostream>
#include <string>
#include <cstring>
#include <cstdlib>
#include <libgen.h>
using namespace std;
char* my_basename(char* str) {

UCX MacOS port is under construction. So far, only ucx_info is built Other conponents (gtests, examples, tools/perf, toos/profile) are future work.

# First, clone UCX repository
$ git clone https://github.com/openucx/ucx.git
$ cd ucx

# Fetch a set of patches from our fork
$ BRANCH_NAME="mac-os-build"
Follow https://github.com/hiroyuki-sato/ucx/issues/34
$ git clean -xfd
$ ./autogen.sh && ./configure --disable-numa --with-progress64=./progress64
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src/ucm
Making all in .
CC event/libucm_la-event.lo
In file included from event/event.c:21:
# learners.py
def update(self, transitions):
# Override DQN.update() and update_from_episodes() to kick
# allreduce communication to synchronize cumulative steps among
# all learners
# Note: Overriding update()/update_from_episodes() is a quick hack to
# implement synchronizing cumulative_steps.
# PFRL doesn't have a mechanism to hook events in a learner loop.
# (`step_hook` in pfrl.experiments.train_agent() works well, but
#!/bin/bash
set -e
set -u
onerror()
{
status=$?
script=$0
line=$1
shift