# Send TensorFlow to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "tensorflow",
    "name": "TensorFlow",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/ivangdavila/tensorflow",
    "canonicalUrl": "https://clawhub.ai/ivangdavila/tensorflow",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/tensorflow",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tensorflow",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "tensorflow",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-04T02:40:08.565Z",
      "expiresAt": "2026-05-11T02:40:08.565Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tensorflow",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=tensorflow",
        "contentDisposition": "attachment; filename=\"tensorflow-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "tensorflow"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/tensorflow"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/tensorflow",
    "downloadUrl": "https://openagent3.xyz/downloads/tensorflow",
    "agentUrl": "https://openagent3.xyz/skills/tensorflow/agent",
    "manifestUrl": "https://openagent3.xyz/skills/tensorflow/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/tensorflow/agent.md"
  }
}
```
## Documentation

### tf.function Retracing

New input shape/dtype causes retrace — expensive, prints warning
Use input_signature for fixed shapes — @tf.function(input_signature=[tf.TensorSpec(...)])
Python values retrace — pass as tensors, not Python ints/floats
Avoid Python side effects in tf.function — only runs once during tracing

### GPU Memory

TensorFlow grabs all GPU memory by default — set memory_growth=True before any ops
tf.config.experimental.set_memory_growth(gpu, True) — must be called before GPU init
OOM with large models — reduce batch size or use gradient checkpointing
CUDA_VISIBLE_DEVICES="" to force CPU — for testing without GPU

### Data Pipeline

tf.data.Dataset without .prefetch() — CPU/GPU idle time between batches
.cache() after expensive ops — but before random augmentation
.batch() before .map() for vectorized ops — faster than per-element
num_parallel_calls=tf.data.AUTOTUNE — parallel preprocessing
Dataset iteration in eager mode is slow — use in tf.function or model.fit

### Shape Issues

First dimension is batch — None for variable batch size in Input layer
model.build(input_shape) if not using Input layer — or first call errors
Reshape errors unclear — tf.debugging.assert_shapes() for debugging
Broadcasting silently succeeds — may hide shape bugs

### Gradient Tape

Variables watched by default — tensors need tape.watch(tensor)
persistent=True for multiple gradients — otherwise tape consumed after first use
tape.gradient returns None if no path — check for disconnected graph
@tf.custom_gradient for custom backward — not all ops have gradients

### Training Gotchas

model.trainable = False after compile does nothing — set before compile
BatchNorm behaves differently in training vs inference — training=True/False matters
model.fit shuffles by default — shuffle=False for time series
validation_split takes from end — shuffle data first if order matters

### Saving Models

model.save() saves everything — architecture, weights, optimizer state
model.save_weights() only weights — need model code to restore
SavedModel format for serving — tf.saved_model.save(model, path)
H5 format limited — doesn't save custom objects well, use SavedModel

### Common Mistakes

Mixing Keras and raw tf ops incorrectly — use layers.Lambda to wrap tf ops in Sequential
tf.print vs Python print — Python print only runs at trace time in tf.function
NumPy ops in graph — use tf ops, numpy executes eagerly only
Loss returns scalar per sample — Keras averages, custom loops may need tf.reduce_mean
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: ivangdavila
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-04T02:40:08.565Z
- Expires at: 2026-05-11T02:40:08.565Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/tensorflow)
- [Send to Agent page](https://openagent3.xyz/skills/tensorflow/agent)
- [JSON manifest](https://openagent3.xyz/skills/tensorflow/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/tensorflow/agent.md)
- [Download page](https://openagent3.xyz/downloads/tensorflow)