Lightning Core API Index

This page is the quick index for public API surfaces.

Python API (PyPI package)

Primary import:

import lightning_core as lc

Main Python surfaces:

  • Runtime helpers: backend_name, runtime_capability, runtime_trace_*, runtime_sync_*
  • Runtime timeline helper: runtime_trace_timeline (sorting/grouping/hotspot summary, including group_by="op_path" for dispatch bottlenecks)
  • Tensor ops: vector_add, matrix_add, matrix_sub, matmul2d, conv2d_nchw
  • Attention: attention2d, attention_forward, AttentionSession
  • Integrated API namespace: lc.api.* (clean operation names for conv/attention/integrated paths)
  • Engine federation surfaces: set_engine/get_engine, *_runner_adapter_schema, create_*_model_runner_adapter, import_export_compatibility_matrix, engine_federation_policy_v3_schema
  • Modular facade package (split-in-progress): lightning_core_api.bridges, lightning_core_api.checkpoint

Related binding sources:

C++ Public Headers

Public wrapper headers:

Canonical core headers:

C API

Public C API header:

ABI/version helpers:

  • lcGetApiVersion, lcGetApiVersionString, lcGetStructSize, lcCheckStructSize

Implementation:

Notes

  • This is an index-style page for quick navigation.
  • Generated API reference pages are available in docs:
  • Python API (generated)
  • C/C++ API (generated)
  • API reference entries on this page are production-linked (no placeholder entries).