Screen package in Linux will create new terminal from current terminal and keep the connection without disconnect automatically.
sudo apt-get update
sudo apt-get install screen
def net2deeper(weights): | |
''' | |
:param weights: numpy array has shape(inp_size, out_size). input_size and out_size are number of units from source | |
to destination layer | |
:return: | |
''' | |
_, out = weights.shape | |
new_weights = np.array(np.eye(out)) | |
new_bias = np.zeros((out,)) |