ncalab.export.header
Functions
|
|
|
Export parameters of an NCA model to a C header. |
Module Contents
- ncalab.export.header.tensor_to_C(tensor: torch.Tensor, name: str, number_type: str = 'float')
- ncalab.export.header.export_header(nca: ncalab.models.basicNCA.abstractNCA.AbstractNCAModel, outfile: str | pathlib.Path | pathlib.PosixPath, number_type: str = 'float', imports: list | None = None)
Export parameters of an NCA model to a C header.
- Parameters:
nca (AbstractNCAModel) – _description_
outfile (str | Path | PosixPath) – _description_
number_type (str, optional) – _description_, defaults to “float”
imports (list | None, optional) – _description_, defaults to None