Library Search
结果页

02-functional-api-tf-data

在 元器件 / 技术栈 / 知识库 中找到 15 个匹配结果。

返回文档库
技术栈

技术栈

7 个
查看全部
知识库

知识库

8 个
02-functional-api-tf-data # TensorFlow Functional API + tf.data Pipeline ## 目标 - 掌握 Functional API(多输入/多输出/共享层) - 掌握 tf.data 高性能输入管道 - 自定义训练循环(Custom Training Loop) ## 完整代码 ### 1. Functional API —— 灵活模型构建 ```python import… 3% Hello World - Cypher 图查询入门 def create_data(tx): """批量创建节点和关系""" tx.run(""" CREATE (:Person {name: '张三', age: 21, major: '计算机科学'}) CREATE (:Person {name: '李四', age: 22, major: '数学'}) CREATE (:Pers… 2% MVVM 数据绑定——学生成绩管理 public class ScoreConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is int score) return… 2% 03-实战数据处理与Web-API class BookUpdate(BaseModel): title: Optional[str] = Field(None, min_length=1, max_length=200) author: Optional[str] = Field(None, min_length=1, max_length=100) year: Optional[int] = Field(… 1% AT24Cxx EEPROM 存储模块 — 代码例程 class AT24Cxx: def __init__(self, i2c, addr=0x50, page_size=32): self.i2c = i2c self.addr = addr self.page_size = page_size def write_byte(self, mem_addr, data):… 1% CRUD 与动态查询 return cb.and(predicates.toArray(new Predicate[0])); }; } } ``` ### 4. 使用示例 ```java package com.example; import com.example.entity.Product; import com.example.entity.Product.Status; imp… 1% INMP441 I2S 麦克风 — 代码例程 (ESP32 + STM32) void dual_i2s_init() { i2s_config_t i2s_config = { .mode = (i2s_mode_t)(I2S_MODE_MASTER | I2S_MODE_RX), .sample_rate = SAMPLE_RATE, .bits_per_sample = I2S_BITS_PER_SAMPLE_3… 1% 入门篇 - RESTful API 实战 public function showAction(int $id): Response { $product = Product::findFirst($id); if (!$product) { return $this->response->setStatusCode(404)->setJsonContent(['error'… 1%