# tensorflow
conda create -n tf python=3.5 tensorflow-gpu
# pytorch
conda install pytorch torchvision -c pytorch
# .bashrc
source activate tf
  
    
      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 tensorflow as tf | |
| config = tf.ConfigProto() | |
| config.gpu_options.allow_growth = True | |
| import numpy as np | |
| import matplotlib | |
| from matplotlib import pyplot as plt | |
| %matplotlib inline | |
| class linear_reg(tf.keras.Model): | |
| def __init__(self): | 
      
      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
    
  
  
    
  | # 1. openmpi-2.1.5 /home/qasdfgtyuiop/program/openmpi/ | |
| cd ~ | |
| mkdir program | |
| cd program/ | |
| wget https://download.open-mpi.org/release/open-mpi/v2.1/openmpi-2.1.5.tar.gz | |
| tar -zxvf openmpi-2.1.5.tar.gz | |
| rm openmpi-2.1.5.tar.gz | |
| cd openmpi-2.1.5/ | |
| ./configure --prefix="/home/qasdfgtyuiop/program/openmpi" | |
| make # take a while | 
      
      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
    
  
  
    
  | def loadmodel(): | |
| H_model = tf.keras.models.load_model('./models/H_tf.model', custom_objects={'AniCELU':AniCELU}) | |
| C_model = tf.keras.models.load_model('./models/C_tf.model', custom_objects={'AniCELU':AniCELU}) | |
| N_model = tf.keras.models.load_model('./models/N_tf.model', custom_objects={'AniCELU':AniCELU}) | |
| O_model = tf.keras.models.load_model('./models/O_tf.model', custom_objects={'AniCELU':AniCELU}) | |
| modelist = [H_model, C_model, N_model, O_model] | |
| return modelist | 
  
    
      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
    
  
  
    
  | /****************************************************************************** | |
| Online C++ Compiler. | |
| Code, Compile, Run and Debug C++ program online. | |
| Write your code in this editor and press "Run" button to compile and execute it. | |
| *******************************************************************************/ | |
| #include <iostream> | 
on run {input, parameters}
	
	tell application "System Events" to set all_apps to the name of every process whose visible is true
	
	repeat with a in all_apps
		tell application "System Events" to try
			keystroke "h" using command down
			delay 0.1
 on error
NewerOlder