EmbeddedData

EmbeddedData#

Tensile.EmbeddedData.generateLibrary(embedFileName: Path, embedLibraryKey: str, masterFile: Path, cppBaseClass: str, codeObjectFiles: List[str]) None#

Creates embed library source files.

The goal of an embed library is to convert the master file and code object files into a byte array and inject the byte arrays into a C++ source file. This precludes the need to load data from the master file and code object files at runtime.

Parameters:
  • embedFileName – Name of the generated C++ embed source file without a file extension.

  • embedLibraryKey – Name or key associated with the embed library.

  • masterFile – Path to the master library file (.dat or .yaml).

  • cppBaseClass – Name of type used when specializing the C++ EmbeddedData class template.

  • codeObjectFiles – List of code object files created by TensileCreateLibrary.