Skip to content

Instantly share code, notes, and snippets.

View Mahedi-61's full-sized avatar
๐Ÿ•Œ
Oh Lord! Bestow me with Knowledge

Md Mahedi Hasan Mahedi-61

๐Ÿ•Œ
Oh Lord! Bestow me with Knowledge
View GitHub Profile
'''Functional Keras is a more functional replacement for the Graph API.
'''
###################
# 2 LSTM branches #
###################
a = Input(input_shape=(10, 32)) # output is a TF/TH placeholder, augmented with Keras attributes
b = Input(input_shape=(10, 32))
encoded_a = LSTM(32)(a) # output is a TF/TH tensor
encoded_b = LSTM(32)(b)