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
from keras.models import Model | |
from keras.layers import Input | |
from keras.layers import LSTM, Dense, SimpleRNN | |
from numpy import array | |
import numpy as np | |
import keras | |
def SimpleRNN_forward(weights, inputs, return_sequence=False): | |
kernel = np.array(weights[0]) # kernel weights |