Library Search
结果页图优化、量化与多平台部署全景
在 技术栈 中找到 8 个匹配结果。
技术栈
技术栈
8 个 PyTorch # ============================================================
# 1. 数据加载与预处理
# ============================================================
transform = transforms.Compose([
transforms.ToTensor(),… 2% Gatsby const result = await graphql(`
query {
allMdx {
nodes {
id
fields { slug }
}
}
}
`);
// 为每篇文章创建一个页面
result.data.allMdx.nodes.forEach((nod… 2% TensorFlow ```bash
tensorboard --logdir=logs --port=6006
```
```python
# 添加更多可视化
file_writer = tf.summary.create_file_writer("logs/custom")
with file_writer.as_default():
tf.summary.scalar("custom_loss", l… 2% Jaeger ```
┌──────────┐ SDK ┌──────────┐
│ 应用 Pod │──OTLP──│ Collector│
│ (SDK) │ └────┬─────┘
└──────────┘ │
┌────┴─────┐
│ Storage │ (ES/C… 2% ONNX | 量化类型 | 精度损失 | 大小 | 速度 |
|----------|----------|------|------|
| FP32(原始) | 0 | 100% | 1x |
| FP16 | <0.1% | 50% | 1.5-2x |
| INT8 动态 | <0.5% | 25% | 1.5-2x |
| INT8 静态 | <1% | 25% | 2-4x |
## 4. 多平… 2% Entity Framework ### 多对多(EF Core 5+ 自动处理)
```csharp
public class Student {
public int Id { get; set; }
public List<Course> Courses { get; set; } = new();
}
public class Course {
public int Id { get; set; }… 2% Pillow # 保存
out_path = output_dir / f"processed_{filepath.stem}.jpg"
img.save(out_path, "JPEG", quality=85, optimize=True)
print(f"✓ {out_path}")
batch_process("./raw_pho… 1% Astro ### 4. 图片优化不生效
- **解决**:Astro 内置 `<Image />`(来自 `astro:assets`),确保图片在 `src/` 下;远程图片需先在 `astro.config.mjs` 中配置域名白名单 1%