- Mastering TensorFlow 1.x
- Armando Fandango
- 124字
- 2021-06-25 22:51:03
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])
推薦閱讀
- 零點起飛學Xilinx FPG
- Learning AngularJS Animations
- FPGA從入門到精通(實戰篇)
- 電腦常見故障現場處理
- The Applied AI and Natural Language Processing Workshop
- 微服務分布式架構基礎與實戰:基于Spring Boot + Spring Cloud
- 筆記本電腦應用技巧
- Hands-On Artificial Intelligence for Banking
- Internet of Things Projects with ESP32
- Arduino項目開發:智能生活
- Intel FPGA權威設計指南:基于Quartus Prime Pro 19集成開發環境
- Blender for Video Production Quick Start Guide
- 筆記本電腦的結構、原理與維修
- 零基礎輕松學修電腦主板
- DevOps實戰:VMware管理員運維方法、工具及最佳實踐