You have to already have these in your system:
- Python. Version 3.6+ is highly recommended.
- Official CPython from python.org
- Anaconda
- (Recommended) Miniconda
import os | |
import tensorflow as tf | |
AUTOTUNE = tf.data.experimental.AUTOTUNE | |
def _parse_batch(record_batch, sample_rate, duration): | |
n_samples = sample_rate * duration | |
# Create a description of the features |
You have to already have these in your system:
This gist will show how to setup Raspbian Stretch as a headless Bluetooth A2DP audio sink. This will allow your phone, laptop or other Bluetooth device to play audio wirelessly through a Rasperry Pi.
A quick search will turn up a plethora of tutorials on setting up A2DP on the Raspberry Pi. However, I felt this gist was necessary because this solution is:
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/ocl/ocl.hpp> | |
// cl_mem構造体を参照するためにインクルード | |
#if defined __APPLE__ | |
#include <OpenCL/cl.h> | |
#else | |
#include <CL/cl.h> | |
#endif |
import cv2 | |
import numpy as np | |
import matplotlib.pyplot as plt | |
from skimage import io | |
img = io.imread('eye.png') | |
# Left eye | |
img = np.around(img[0:img.shape[0], 0:img.shape[1]/2]) |
# The next line updates PATH for the Google Cloud SDK. | |
source /Users/dwchiang/google-cloud-sdk/path.zsh.inc | |
# The next line enables zsh completion for gcloud. | |
source /Users/dwchiang/google-cloud-sdk/completion.zsh.inc |
Open Computing Language (OpenCL) is a language and framework for writing computationally intensive kernels that run accross heterogenious platforms, including GPUs, CPUs, and perhaps other more esoteric devices.
Intel provides an OpenCL implementation for Intel CPUs, but there's not a lot of instructions on how to get it set up. Here's what I did.
intel_sdk_for_ocl_applications_2013_xe_sdk_3.0.67279_x64.tgz