{
  "$schema": "https://ambiqai.github.io/helia-ui/schema/reference-model-1.json",
  "generatedFrom": {
    "sourceCommit": "f341fb11f7f5d77a4974ba8273c4cd55d67c21f0",
    "tool": "pyref",
    "version": "1.7.3"
  },
  "language": "python",
  "modules": [
    {
      "description": "Rewrite a weight-only float16 TFLite model into a native float16 graph.",
      "name": "fp16",
      "path": "helia_edge.export.fp16",
      "submodules": [],
      "summary": "Rewrite a weight-only float16 TFLite model into a native float16 graph.",
      "symbols": [
        {
          "description": "Return a graph whose inputs, weights, activations and outputs are FLOAT16.\n\nThe TFLite float16 optimization stores weights as FLOAT16 behind\n``DEQUANTIZE`` operators and computes in FLOAT32. This drops each\nFLOAT16 -> FLOAT32 ``DEQUANTIZE``, rewires its consumers to the FLOAT16\nsource, and converts every remaining FLOAT32 tensor and constant buffer to\nFLOAT16. Constants outside the float16 range saturate to +/-65504, as in\nTFLite's float16 optimization. Non-float tensors are unchanged. The dropped\n``DEQUANTIZE`` outputs and operator codes no operator uses are removed, and\noperator, subgraph and signature tensor indices are renumbered to match.\nBuffers of removed tensors stay in the model; they are empty.",
          "examples": [],
          "id": "helia_edge.export.fp16.to_native_fp16",
          "kind": "function",
          "language": "python",
          "members": [],
          "name": "to_native_fp16",
          "params": [
            {
              "description": "Weight-only float16 TFLite flatbuffer.",
              "name": "model_content",
              "type": "bytes"
            }
          ],
          "raises": [],
          "returns": [
            {
              "description": "Native float16 TFLite flatbuffer.",
              "name": "bytes",
              "type": "bytes"
            }
          ],
          "signature": "to_native_fp16(model_content: bytes) -> bytes",
          "source": {
            "line": 13,
            "path": "helia_edge/export/fp16.py",
            "url": "https://github.com/AmbiqAI/helia-edge/blob/f341fb11f7f5d77a4974ba8273c4cd55d67c21f0/helia_edge/export/fp16.py#L13"
          },
          "summary": "Return a graph whose inputs, weights, activations and outputs are FLOAT16."
        }
      ]
    }
  ],
  "name": "helia_edge"
}
