我有两个build_model功能如下:
def build_model01():
X_input = Input(shape=(784,))
Y = Dense(1, activation='sigmoid')(X_input)
model = Model(inputs = X_input, outputs = Y, name='build_model')
return model
def build_model02():
model = Sequential()
model.add(Dense(input_dim=784,units=1,activation='sigmoid'))
return model
build_model01和之间有什么区别build_model02?它们实际上是一样的吗?差异会影响其他层吗?
LEATH
相关分类