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
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Author: Patrick Wieschollek <[email protected]> | |
| from tensorpack import * | |
| from tensorpack.dataflow.base import DataFlow | |
| from tensorpack.dataflow.dftools import LMDBDataWriter, TFRecordDataWriter, NumpyDataWriter, HDF5DataWriter | |
| from tensorpack.dataflow.format import LMDBDataReader, TFRecordDataReader, NumpyDataReader, HDF5DataReader | |
| import os |
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
| #! /usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # Author: Patrick Wieschollek <[email protected]> | |
| """ | |
| A Python2 + Python3 wrapper for NVML | |
| """ | |
| from ctypes import * | |
| import threading |
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
| A B C D E F | |
| A B C D E H | |
| A B C D E I | |
| A B C D E K | |
| A B C D E L | |
| A B C D E M | |
| A B C D E O | |
| A B C D F H | |
| A B C D F I | |
| A B C D F K |
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
| TASK: To shoot yourself in the foot... | |
| C | |
| You shoot yourself in the foot. | |
| C++ | |
| You accidentally create a dozen instances of yourself and shoot them all in the foot. | |
| Providing emergency medical care is impossible since you can't tell which are bitwise | |
| copies and which are just pointing at others and saying, "That's me over there." |
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
| // compile me by nvcc copy.cu -o test | |
| #include <iostream> | |
| int main(int argc, char const *argv[]) | |
| { | |
| const size_t MB = 10; | |
| const size_t len = MB*256; | |
| float *d_ptr, *h_ptr; |
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
| # Patrick Wieschollek <[email protected]> | |
| from zipfile import ZipFile | |
| import cv2 | |
| import numpy as np | |
| import scipy.io as sio | |
| from tensorpack import * | |
| import argparse | |
| """ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| """ | |
| Add `"open_settings_in_new_window": false,` to the `Preferences.sublime-settings`. | |
| """ | |
| import os.path | |
| import sublime | |
| import sublime_plugin | |
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
| starting in with black's turn | |
| ------ START internal representation ------------------ | |
| WHITE (O) vs BLACK (X) | |
| x 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 | |
| A B C D E F G H J K L M N O P Q R S T y | |
| 19 . o x . . . . . . . . . . . . . . . . 19 0 | |
| 18 . x o x . . . . . . . . . . . . . . . 18 1 |
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
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| import cv2 | |
| import argparse | |
| import numpy as np | |
| from tensorpack import * | |
| """ |