Join the SIG TFX-Addons community and help make TFX even better!

tfx.components.util.tfxio_utils.get_data_view_decode_fn_from_artifact

Returns the decode function wrapped in the examples' Data View.

examples The Examples artifacts from which the data view is resolved.
telemetry_descriptors A set of descriptors that identify the component that is instantiating the TFXIO. These will be used to construct the namespace to contain metrics for profiling and are therefore expected to be identifiers of the component itself and not individual instances of source use.

If a Data View can be resolved from examples, then it returns a TF Function that takes a 1-D string tensor (example records) and returns decoded (composite) tensors. Otherwise returns None.