官术网_书友最值得收藏!

Functional API for creating the Keras model

In the functional API, you create the model as an instance of the Model class that takes an input and output parameter. The input and output parameters represent one or more input and output tensors, respectively.

As an example, use the following code to instantiate a model from the functional API:

model = Model(inputs=tensor1, outputs=tensor2)

In the above code, tensor1 and tensor2 are either tensors or objects that can be treated like tensors, for example, Keras layer objects.

If there are more than one input and output tensors, they can be passed as a list, as shown in the following example:

model = Model(inputs=[i1,i2,i3], outputs=[o1,o2,o3])
主站蜘蛛池模板: 泸定县| 长武县| 凉山| 辉县市| 酉阳| 永城市| 那曲县| 滦南县| 沈丘县| 会泽县| 合江县| 富平县| 陕西省| 东光县| 通榆县| 德兴市| 九龙坡区| 福海县| 滦南县| 山阳县| 敦煌市| 紫阳县| 年辖:市辖区| 修武县| 万源市| 开原市| 长子县| 湖州市| 包头市| 栾城县| 巴马| 湟中县| 临沭县| 鸡泽县| 凌云县| 溧水县| 镇坪县| 龙岩市| 工布江达县| 电白县| 常德市|