{
  "$schema": "https://ambiqai.github.io/helia-ui/schema/reference-model-1.json",
  "generatedFrom": {
    "sourceCommit": "aee921f9f6ddb72ad858bd66859e225a41d53074",
    "tool": "pyref",
    "version": "1.7.3"
  },
  "language": "python",
  "modules": [
    {
      "description": "",
      "name": "TensorLifetime",
      "path": "helia_aot.memory.defines.TensorLifetime",
      "submodules": [],
      "summary": "",
      "symbols": [
        {
          "description": "Tensor operator lifetime.\n\nProvisional: importable, but outside the compatibility promise; a minor release can change or remove it.",
          "examples": [],
          "id": "helia_aot.memory.defines.TensorLifetime",
          "kind": "class",
          "language": "python",
          "members": [
            {
              "description": "Unique identifier for the tensor",
              "examples": [],
              "id": "helia_aot.memory.defines.TensorLifetime.tensor_id",
              "kind": "attribute",
              "language": "python",
              "members": [],
              "name": "tensor_id",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "tensor_id: TensorId = Field(..., description='Unique identifier for the tensor')",
              "source": {
                "line": 152,
                "path": "helia_aot/memory/defines.py",
                "url": "https://github.com/AmbiqAI/helia-aot/blob/aee921f9f6ddb72ad858bd66859e225a41d53074/helia_aot/memory/defines.py#L152"
              },
              "summary": ""
            },
            {
              "description": "Index of the first operator that uses/defines it",
              "examples": [],
              "id": "helia_aot.memory.defines.TensorLifetime.start_op",
              "kind": "attribute",
              "language": "python",
              "members": [],
              "name": "start_op",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "start_op: int = Field(..., description='Index of the first operator that uses/defines it')",
              "source": {
                "line": 153,
                "path": "helia_aot/memory/defines.py",
                "url": "https://github.com/AmbiqAI/helia-aot/blob/aee921f9f6ddb72ad858bd66859e225a41d53074/helia_aot/memory/defines.py#L153"
              },
              "summary": ""
            },
            {
              "description": "Index of the last operator that uses it",
              "examples": [],
              "id": "helia_aot.memory.defines.TensorLifetime.end_op",
              "kind": "attribute",
              "language": "python",
              "members": [],
              "name": "end_op",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "end_op: int = Field(..., description='Index of the last operator that uses it')",
              "source": {
                "line": 154,
                "path": "helia_aot/memory/defines.py",
                "url": "https://github.com/AmbiqAI/helia-aot/blob/aee921f9f6ddb72ad858bd66859e225a41d53074/helia_aot/memory/defines.py#L154"
              },
              "summary": ""
            },
            {
              "description": "Add an operator index to the lifetime.",
              "examples": [],
              "id": "helia_aot.memory.defines.TensorLifetime.add_op",
              "kind": "method",
              "language": "python",
              "members": [],
              "name": "add_op",
              "params": [
                {
                  "description": "Operator index to add",
                  "name": "op_idx",
                  "type": "int"
                }
              ],
              "raises": [],
              "returns": [],
              "signature": "add_op(op_idx: int)",
              "source": {
                "line": 156,
                "path": "helia_aot/memory/defines.py",
                "url": "https://github.com/AmbiqAI/helia-aot/blob/aee921f9f6ddb72ad858bd66859e225a41d53074/helia_aot/memory/defines.py#L156"
              },
              "summary": "Add an operator index to the lifetime."
            },
            {
              "description": "Merge another lifetime into this one.\n\nThis updates the start and end operators to encompass both lifetimes.\nUseful when tensors have aliases.",
              "examples": [],
              "id": "helia_aot.memory.defines.TensorLifetime.merge",
              "kind": "method",
              "language": "python",
              "members": [],
              "name": "merge",
              "params": [
                {
                  "description": "Another tensor lifetime to merge",
                  "name": "other",
                  "type": "TensorLifetime"
                }
              ],
              "raises": [],
              "returns": [],
              "signature": "merge(other: TensorLifetime)",
              "source": {
                "line": 165,
                "path": "helia_aot/memory/defines.py",
                "url": "https://github.com/AmbiqAI/helia-aot/blob/aee921f9f6ddb72ad858bd66859e225a41d53074/helia_aot/memory/defines.py#L165"
              },
              "summary": "Merge another lifetime into this one."
            }
          ],
          "name": "TensorLifetime",
          "params": [],
          "raises": [],
          "returns": [],
          "signature": "TensorLifetime()",
          "source": {
            "line": 142,
            "path": "helia_aot/memory/defines.py",
            "url": "https://github.com/AmbiqAI/helia-aot/blob/aee921f9f6ddb72ad858bd66859e225a41d53074/helia_aot/memory/defines.py#L142"
          },
          "summary": "Tensor operator lifetime."
        }
      ]
    }
  ],
  "name": "helia_aot"
}
