目的 kerasのサイトの以下のコードで、 Model(inputs=inputs, outputs=predictions) のような、inとoutの定義で、なぜ、複数のレイヤをもつmodelが構成できるのかがわからなかったので調べた。 from keras.layers import Input, Dense from keras.models import Model # This returns a tensor inputs = Input(shape=(784,)) # a layer instance is callable on a tensor, and returns a tensor x = Dense(64, activation='relu')(inputs) x = Dense(64, activation='relu')(x) predictions = De