2
我注意到在https://blog.keras.io/keras-as-a-simplified-interface-to-tensorflow-tutorial.html它说我们可以设置张量流op作为keras模型的输入,如:first_layer.set_input(my_input_tensor)
。但我发现,keras没有set_input功能:
first_layer = Dense(32, activation='relu', input_dim=784)
first_layer.set_input(my_input_tensor)
,但我得到:
AttributeError: 'Dense' object has no attribute 'set_input'.
可能是什么问题?
要添加到@Wasi,它在Keras 1.1.1中被删除,https://github.com/fchollet/keras/commit/92e8a20761bedbde8fd56a02a165884e8132f045 – indraforyou
非常感谢! –