This file contains 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
(base) root@7f12:~# python | |
Python 3.7.3 (default, Mar 27 2019, 22:11:17) | |
[GCC 7.3.0] :: Anaconda, Inc. on linux | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import onnx | |
>>> from onnx_tf.backend import prepare | |
/root/onnx-tensorflow/onnx_tf/common/__init__.py:87: UserWarning: onnx_tf.common.get_outputs_names is deprecated. It will be removed in future release. Use TensorflowGraph.get_outputs_names instead. | |
warnings.warn(message) | |
WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0. |
This file contains 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 <boost/interprocess/managed_windows_shared_memory.hpp> | |
#include <iostream> | |
using namespace boost::interprocess; | |
int main() | |
{ | |
managed_windows_shared_memory *shm = nullptr; | |
try { |
This file contains 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 <boost/interprocess/sync/file_lock.hpp> | |
#include <iostream> | |
using namespace boost::interprocess; | |
int main() | |
{ | |
file_lock flock("bitest5.cpp"); | |
flock.lock(); | |
std::cout << "The process locked an file_lock," << std::endl; |
This file contains 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 <boost/interprocess/managed_xsi_shared_memory.hpp> | |
#include <boost/interprocess/xsi_key.hpp> | |
#include <boost/interprocess/sync/scoped_lock.hpp> | |
#include <iostream> | |
using namespace boost::interprocess; | |
void first_process(managed_xsi_shared_memory *shm); | |
void second_process(managed_xsi_shared_memory *shm); |
This file contains 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 <boost/interprocess/managed_xsi_shared_memory.hpp> | |
#include <boost/interprocess/xsi_key.hpp> | |
#include <iostream> | |
using namespace boost::interprocess; | |
void first_process(managed_xsi_shared_memory *shm); | |
void second_process(managed_xsi_shared_memory *shm); | |
int main() |
This file contains 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 <boost/interprocess/managed_xsi_shared_memory.hpp> | |
#include <boost/interprocess/xsi_key.hpp> | |
#include <iostream> | |
using namespace boost::interprocess; | |
int main() | |
{ | |
managed_xsi_shared_memory *shm = nullptr; |
This file contains 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 <boost/interprocess/managed_xsi_shared_memory.hpp> | |
#include <boost/interprocess/xsi_key.hpp> | |
#include <iostream> | |
using namespace boost::interprocess; | |
int main() | |
{ | |
managed_xsi_shared_memory *shm = nullptr; |
This file contains 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 <opencv2/opencv.hpp> | |
using namespace cv; | |
using namespace cv::cuda; | |
int main() | |
{ | |
setBufferPoolUsage(true); | |
BufferPool pool(Stream::Null()); |
This file contains 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
" Firstly, do | |
" git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
set nocompatible " require Vi iMproved | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' |
This file contains 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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Console\%SystemRoot%_System32_bash.exe] | |
; ****IMPORTANT**** | |
; Set to utf-8 to make the modified font/colorscheme to be saved | |
; (https://mnpk.github.io/2017/11/03/bash_on_ubuntu_on_windows.html) | |
"CodePage"=dword:0000fde9 | |
; Select font |