tft.annotate_asset

Creates mapping between user-defined keys and SavedModel assets.

This mapping is made available in BeamDatasetMetadata and is also used to resolve vocabularies in tft.TFTransformOutput.

asset_key The key to associate with the asset.
asset_filename The filename as it appears within the assets/ subdirectory. Must be sanitized and complete (e.g. include the tfrecord.gz for suffix appropriate files).