This file contains hidden or 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
#include <cuda_runtime.h> | |
// how to use? | |
// std::vector<float, CudaHostAllocator<float>> vec; | |
template <typename T> | |
class CudaHostAllocator { | |
public: | |
using value_type = T; |
This file contains hidden or 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 numpy as np | |
from skimage import io, transform | |
# Using one image | |
image_filenames = 'image.jpg' | |
# Read the image | |
image = io.imread(images_filenames) | |
# Resize image (256 x 256 x 3) and turn the image matrix of m x n x 3 to lists of rgb |