Hello, I’m studying hard PyTorch.
But I have a problem that I can’t solve myself.
######################################################################
sequence_Input = keras.layers.Input(shape=(None, num_x_signals,), dtype=‘float32’, name=‘sequence_Input’)
RNN_Flow = Bidirectional(GRU(250, return_sequences=True, activation=‘relu’))(sequence_Input)
RNN_Flow = Bidirectional(GRU(250, return_sequences=True, activation=‘tanh’))(RNN_Flow)
additional_Input = keras.layers.Input(shape=(None, num_add_signals,), dtype=‘float32’, name=‘addtional_input’)
NEW_Flow = keras.layers.Concatenate(axis=2)([RNN_Flow, additional_Input])
output_Main = Dense(100, activation = ‘relu’)(NEW_Flow)
output_Main = Dense(100, activation = ‘tanh’)(output_Main)
output_Main = Dense(num_y_signals, activation=‘sigmoid’, name=‘output_Main’)(output_Main)
model = keras.models.Model(inputs=[sequence_Input, additional_Input], outputs=output_Main)
#######################################################################
I want to change the Keras model to Pytorch. Please help me.
I really need your help