data
Metadata
Metadata(description: str = '', author: str = '', license: str = '', version: str = '')What the package says about itself.
Empty fields are left out of the description rather than written blank, so a package carries only what someone actually stated.
Examples
>>> import shutil, tempfile
>>> import lucid, lucid.nn as nn, lucid.coreml as cml
>>> model = nn.Sequential(nn.Conv2d(3, 16, 3, padding=1), nn.ReLU()).eval()
>>> x, room = lucid.randn(1, 3, 32, 32), tempfile.mkdtemp()
>>> package = cml.export(model, x, f"{room}/m.mlpackage", metadata=cml.Metadata(
... description="One convolution, for the example",
... author="me", license="MIT", version="1.0",
... ))
>>> package.close()
>>> shutil.rmtree(room)