sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| 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,)) |